]> git.proxmox.com Git - rustc.git/blame - src/test/ui/resolve/tuple-struct-alias.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / resolve / tuple-struct-alias.stderr
CommitLineData
2b03887a
FG
1error[E0532]: expected tuple struct or tuple variant, found type alias `A`
2 --> $DIR/tuple-struct-alias.rs:7:9
32a655c1 3 |
e74abb32
XL
4LL | struct S(u8, u16);
5 | ------------------ similarly named tuple struct `S` defined here
6...
2b03887a
FG
7LL | A(..) => {}
8 | ^ help: a tuple struct with a similar name exists: `S`
2c00a5a8
XL
9 |
10 = note: can't use a type alias as a constructor
32a655c1 11
2b03887a
FG
12error[E0423]: expected function, tuple struct or tuple variant, found type alias `A`
13 --> $DIR/tuple-struct-alias.rs:5:13
32a655c1 14 |
e74abb32
XL
15LL | struct S(u8, u16);
16 | ------------------ similarly named tuple struct `S` defined here
17...
2b03887a
FG
18LL | let s = A(0, 1);
19 | ^ help: a tuple struct with a similar name exists: `S`
2c00a5a8
XL
20 |
21 = note: can't use a type alias as a constructor
32a655c1 22
b7449926 23error: aborting due to 2 previous errors
32a655c1 24
48663c56 25Some errors have detailed explanations: E0423, E0532.
0531ce1d 26For more information about an error, try `rustc --explain E0423`.