]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/tuple-struct-alias.stderr
Switch wasm math symbols to their original names
[rust.git] / src / test / ui / resolve / tuple-struct-alias.stderr
1 error[E0423]: expected function, found self type `Self`
2   --> $DIR/tuple-struct-alias.rs:16:17
3    |
4 LL |         let s = Self(0, 1); //~ ERROR expected function
5    |                 ^^^^ not a function
6    |
7    = note: can't use `Self` as a constructor, you must use the implemented struct
8
9 error[E0532]: expected tuple struct/variant, found self type `Self`
10   --> $DIR/tuple-struct-alias.rs:18:13
11    |
12 LL |             Self(..) => {} //~ ERROR expected tuple struct/variant
13    |             ^^^^ not a tuple struct/variant
14    |
15    = note: can't use `Self` as a constructor, you must use the implemented struct
16
17 error[E0423]: expected function, found type alias `A`
18   --> $DIR/tuple-struct-alias.rs:24:13
19    |
20 LL |     let s = A(0, 1); //~ ERROR expected function
21    |             ^ did you mean `S`?
22    |
23    = note: can't use a type alias as a constructor
24
25 error[E0532]: expected tuple struct/variant, found type alias `A`
26   --> $DIR/tuple-struct-alias.rs:26:9
27    |
28 LL |         A(..) => {} //~ ERROR expected tuple struct/variant
29    |         ^ did you mean `S`?
30    |
31    = note: can't use a type alias as a constructor
32
33 error: aborting due to 4 previous errors
34
35 Some errors occurred: E0423, E0532.
36 For more information about an error, try `rustc --explain E0423`.