11 impl MyTrait for Foo {}
16 //~^ ERROR expected unit struct, unit variant or constant, found method `Foo::bar`
20 //~^ ERROR expected unit struct, unit variant or constant, found method `Foo::bar`
23 <Foo>::trait_bar => {}
24 //~^ ERROR expected unit struct, unit variant or constant, found method `Foo::trait_bar`
26 if let Foo::bar = 0u32 {}
27 //~^ ERROR expected unit struct, unit variant or constant, found method `Foo::bar`
28 if let <Foo>::bar = 0u32 {}
29 //~^ ERROR expected unit struct, unit variant or constant, found method `Foo::bar`
30 if let Foo::trait_bar = 0u32 {}
31 //~^ ERROR expected unit struct, unit variant or constant, found method `Foo::trait_bar`