Without this, implementations cannot be parsed:
my_macro! {
impl std::ops::Add for X {}
}
Is there some policy for which parts of the standard Rust syntax macro_rules should and should not be able to parse?
macro_rules my_macro! {
(impl p:path for t:ty) => {}
}
// `$r#p:path` is followed by `for`, which is not allowed for `path` fragments