]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-enum-variants/enum-variant-priority-higher-than-other-inherent.stderr
Rollup merge of #102559 - compiler-errors:issue-102553, r=oli-obk
[rust.git] / src / test / ui / type-alias-enum-variants / enum-variant-priority-higher-than-other-inherent.stderr
1 error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
2   --> $DIR/enum-variant-priority-higher-than-other-inherent.rs:21:5
3    |
4 LL |     <E>::V();
5    |     ^^^^^^-- an argument of type `u8` is missing
6    |
7 note: tuple variant defined here
8   --> $DIR/enum-variant-priority-higher-than-other-inherent.rs:5:5
9    |
10 LL |     V(u8)
11    |     ^
12 help: provide the argument
13    |
14 LL |     <E>::V(/* u8 */);
15    |           ~~~~~~~~~~
16
17 error[E0308]: mismatched types
18   --> $DIR/enum-variant-priority-higher-than-other-inherent.rs:22:17
19    |
20 LL |     let _: u8 = <E2>::V;
21    |            --   ^^^^^^^ expected `u8`, found enum `E2`
22    |            |
23    |            expected due to this
24
25 error: aborting due to 2 previous errors
26
27 Some errors have detailed explanations: E0061, E0308.
28 For more information about an error, try `rustc --explain E0061`.