]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/tuple-struct-alias.stderr
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[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);
5    |             ^ help: a tuple struct with a similar name exists: `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(..) => {}
13    |         ^ help: a tuple struct with a similar name exists: `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 have detailed explanations: E0423, E0532.
20 For more information about an error, try `rustc --explain E0423`.