1 error[E0071]: expected struct, variant or union type, found type parameter `Self`
2 --> $DIR/struct-path-self.rs:5:17
7 error[E0109]: type arguments are not allowed on self type
8 --> $DIR/struct-path-self.rs:7:24
10 LL | let z = Self::<u8> {};
11 | ---- ^^ type argument not allowed
13 | not allowed on self type
15 help: the `Self` type doesn't accept type parameters
17 LL - let z = Self::<u8> {};
21 error[E0071]: expected struct, variant or union type, found type parameter `Self`
22 --> $DIR/struct-path-self.rs:7:17
24 LL | let z = Self::<u8> {};
25 | ^^^^^^^^^^ not a struct
27 error[E0071]: expected struct, variant or union type, found type parameter `Self`
28 --> $DIR/struct-path-self.rs:11:13
30 LL | Self { .. } => {}
33 error[E0109]: type arguments are not allowed on self type
34 --> $DIR/struct-path-self.rs:20:24
36 LL | let z = Self::<u8> {};
37 | ---- ^^ type argument not allowed
39 | not allowed on self type
41 note: `Self` is of type `S`
42 --> $DIR/struct-path-self.rs:1:8
45 | ^ `Self` corresponds to this type, which doesn't have generic parameters
48 | ------------- `Self` is on type `S` in this `impl`
49 help: the `Self` type doesn't accept type parameters
51 LL - let z = Self::<u8> {};
55 error[E0109]: type arguments are not allowed on self type
56 --> $DIR/struct-path-self.rs:30:24
58 LL | let z = Self::<u8> {};
59 | ---- ^^ type argument not allowed
61 | not allowed on self type
63 note: `Self` is of type `S`
64 --> $DIR/struct-path-self.rs:1:8
67 | ^ `Self` corresponds to this type, which doesn't have generic parameters
70 | ------ `Self` is on type `S` in this `impl`
71 help: the `Self` type doesn't accept type parameters
73 LL - let z = Self::<u8> {};
77 error: aborting due to 6 previous errors
79 Some errors have detailed explanations: E0071, E0109.
80 For more information about an error, try `rustc --explain E0071`.