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