]>
Commit | Line | Data |
---|---|---|
2b03887a FG |
1 | error[E0532]: expected tuple struct or tuple variant, found type alias `A` |
2 | --> $DIR/tuple-struct-alias.rs:7:9 | |
32a655c1 | 3 | | |
e74abb32 XL |
4 | LL | struct S(u8, u16); |
5 | | ------------------ similarly named tuple struct `S` defined here | |
6 | ... | |
2b03887a FG |
7 | LL | 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 |
12 | error[E0423]: expected function, tuple struct or tuple variant, found type alias `A` |
13 | --> $DIR/tuple-struct-alias.rs:5:13 | |
32a655c1 | 14 | | |
e74abb32 XL |
15 | LL | struct S(u8, u16); |
16 | | ------------------ similarly named tuple struct `S` defined here | |
17 | ... | |
2b03887a FG |
18 | LL | 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 | 23 | error: aborting due to 2 previous errors |
32a655c1 | 24 | |
48663c56 | 25 | Some errors have detailed explanations: E0423, E0532. |
0531ce1d | 26 | For more information about an error, try `rustc --explain E0423`. |