trait Foo {} macro_rules! foo(($t:path) => { impl Foo for T {} }); foo!(m::m2::A); //~ ERROR failed to resolve fn main() {}