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