6 //~^ ERROR expected struct, variant or union type, found type parameter
8 //~^ ERROR expected struct, variant or union type, found type parameter
9 //~| ERROR type arguments are not allowed on self type
12 //~^ ERROR expected struct, variant or union type, found type parameter
19 let s = Self {}; // OK
20 let z = Self::<u8> {}; //~ ERROR type arguments are not allowed on self type
22 Self { .. } => {} // OK
29 let s = Self {}; // OK
30 let z = Self::<u8> {}; //~ ERROR type arguments are not allowed on self type
32 Self { .. } => {} // OK