// Unnecessary path disambiguator is ok //@ check-pass macro_rules! m { ($p: path) => { let _ = $p(0); let _: $p; } } struct Foo { _a: T, } struct S(T); fn f() { let f = Some(Foo { _a: 42 }).map(|a| a as Foo::); let g: Foo:: = Foo { _a: 42 }; m!(S::); } fn main() {}