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