13 //~^ ERROR expected struct, variant or union type, found associated type
14 let z = T::A::<u8> {};
15 //~^ ERROR expected struct, variant or union type, found associated type
16 //~| ERROR this associated type takes 0 generic arguments but 1 generic argument was supplied
19 //~^ ERROR expected struct, variant or union type, found associated type
23 fn g<T: Tr<A = S>>() {
24 let s = T::A {}; // OK
25 let z = T::A::<u8> {}; //~ ERROR this associated type takes 0 generic arguments but 1 generic argument was supplied
32 let s = S::A {}; //~ ERROR ambiguous associated type
33 let z = S::A::<u8> {}; //~ ERROR ambiguous associated type
35 S::A {} => {} //~ ERROR ambiguous associated type