]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/tuple-struct-alias.stderr
Auto merge of #57006 - GuillaumeGomez:no-crate-filter, r=QuietMisdreavus
[rust.git] / src / test / ui / resolve / tuple-struct-alias.stderr
1 error[E0423]: expected function, found type alias `A`
2   --> $DIR/tuple-struct-alias.rs:5:13
3    |
4 LL |     let s = A(0, 1); //~ ERROR expected function
5    |             ^ did you mean `S`?
6    |
7    = note: can't use a type alias as a constructor
8
9 error[E0532]: expected tuple struct/variant, found type alias `A`
10   --> $DIR/tuple-struct-alias.rs:7:9
11    |
12 LL |         A(..) => {} //~ ERROR expected tuple struct/variant
13    |         ^ did you mean `S`?
14    |
15    = note: can't use a type alias as a constructor
16
17 error: aborting due to 2 previous errors
18
19 Some errors occurred: E0423, E0532.
20 For more information about an error, try `rustc --explain E0423`.