1error[E0071]: expected struct, variant or union type, found type parameter `Self` 2 --> $DIR/struct-path-self.rs:5:17 3 | 4LL | let s = Self {}; 5 | ^^^^ not a struct 6 7error[E0109]: type arguments are not allowed for this type 8 --> $DIR/struct-path-self.rs:7:24 9 | 10LL | let z = Self::<u8> {}; 11 | ^^ type argument not allowed 12 13error[E0071]: expected struct, variant or union type, found type parameter `Self` 14 --> $DIR/struct-path-self.rs:7:17 15 | 16LL | let z = Self::<u8> {}; 17 | ^^^^^^^^^^ not a struct 18 19error[E0071]: expected struct, variant or union type, found type parameter `Self` 20 --> $DIR/struct-path-self.rs:11:13 21 | 22LL | Self { .. } => {} 23 | ^^^^ not a struct 24 25error[E0109]: type arguments are not allowed for this type 26 --> $DIR/struct-path-self.rs:20:24 27 | 28LL | let z = Self::<u8> {}; 29 | ^^ type argument not allowed 30 31error[E0109]: type arguments are not allowed for this type 32 --> $DIR/struct-path-self.rs:30:24 33 | 34LL | let z = Self::<u8> {}; 35 | ^^ type argument not allowed 36 37error: aborting due to 6 previous errors 38 39Some errors have detailed explanations: E0071, E0109. 40For more information about an error, try `rustc --explain E0071`. 41