fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0423]: expected function, tuple struct or tuple variant, found type alias `A` 2 --> $DIR/tuple-struct-alias.rs:5:13 3 | 4LL | struct S(u8, u16); 5 | ------------------ similarly named tuple struct `S` defined here 6... 7LL | let s = A(0, 1); 8 | ^ help: a tuple struct with a similar name exists: `S` 9 | 10 = note: can't use a type alias as a constructor 11 12error[E0532]: expected tuple struct or tuple variant, found type alias `A` 13 --> $DIR/tuple-struct-alias.rs:7:9 14 | 15LL | struct S(u8, u16); 16 | ------------------ similarly named tuple struct `S` defined here 17... 18LL | A(..) => {} 19 | ^ help: a tuple struct with a similar name exists: `S` 20 | 21 = note: can't use a type alias as a constructor 22 23error: aborting due to 2 previous errors 24 25Some errors have detailed explanations: E0423, E0532. 26For more information about an error, try `rustc --explain E0423`.