fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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 on self type 8 --> $DIR/struct-path-self.rs:7:24 9 | 10LL | let z = Self::<u8> {}; 11 | ---- ^^ type argument not allowed 12 | | 13 | not allowed on self type 14 | 15help: the `Self` type doesn't accept type parameters 16 | 17LL - let z = Self::<u8> {}; 18LL + let z = Self {}; 19 | 20 21error[E0071]: expected struct, variant or union type, found type parameter `Self` 22 --> $DIR/struct-path-self.rs:7:17 23 | 24LL | let z = Self::<u8> {}; 25 | ^^^^^^^^^^ not a struct 26 27error[E0071]: expected struct, variant or union type, found type parameter `Self` 28 --> $DIR/struct-path-self.rs:11:13 29 | 30LL | Self { .. } => {} 31 | ^^^^ not a struct 32 33error[E0109]: type arguments are not allowed on self type 34 --> $DIR/struct-path-self.rs:20:24 35 | 36LL | let z = Self::<u8> {}; 37 | ---- ^^ type argument not allowed 38 | | 39 | not allowed on self type 40 | 41note: `Self` is of type `S` 42 --> $DIR/struct-path-self.rs:1:8 43 | 44LL | struct S; 45 | ^ `Self` corresponds to this type, which doesn't have generic parameters 46... 47LL | impl Tr for S { 48 | ------------- `Self` is on type `S` in this `impl` 49help: the `Self` type doesn't accept type parameters 50 | 51LL - let z = Self::<u8> {}; 52LL + let z = Self {}; 53 | 54 55error[E0109]: type arguments are not allowed on self type 56 --> $DIR/struct-path-self.rs:30:24 57 | 58LL | let z = Self::<u8> {}; 59 | ---- ^^ type argument not allowed 60 | | 61 | not allowed on self type 62 | 63note: `Self` is of type `S` 64 --> $DIR/struct-path-self.rs:1:8 65 | 66LL | struct S; 67 | ^ `Self` corresponds to this type, which doesn't have generic parameters 68... 69LL | impl S { 70 | ------ `Self` is on type `S` in this `impl` 71help: the `Self` type doesn't accept type parameters 72 | 73LL - let z = Self::<u8> {}; 74LL + let z = Self {}; 75 | 76 77error: aborting due to 6 previous errors 78 79Some errors have detailed explanations: E0071, E0109. 80For more information about an error, try `rustc --explain E0071`.