]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-enum-variants/enum-variant-priority-higher-than-other-inherent.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / type-alias-enum-variants / enum-variant-priority-higher-than-other-inherent.stderr
CommitLineData
064997fb 1error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
dc9dc135
XL
2 --> $DIR/enum-variant-priority-higher-than-other-inherent.rs:21:5
3 |
dc9dc135 4LL | <E>::V();
923072b8 5 | ^^^^^^-- an argument of type `u8` is missing
94222f64
XL
6 |
7note: tuple variant defined here
8 --> $DIR/enum-variant-priority-higher-than-other-inherent.rs:5:5
9 |
10LL | V(u8)
11 | ^
923072b8
FG
12help: provide the argument
13 |
14LL | <E>::V(/* u8 */);
f2b60f7d 15 | ~~~~~~~~~~
dc9dc135
XL
16
17error[E0308]: mismatched types
18 --> $DIR/enum-variant-priority-higher-than-other-inherent.rs:22:17
19 |
20LL | let _: u8 = <E2>::V;
60c5eb7d
XL
21 | -- ^^^^^^^ expected `u8`, found enum `E2`
22 | |
23 | expected due to this
dc9dc135
XL
24
25error: aborting due to 2 previous errors
26
27Some errors have detailed explanations: E0061, E0308.
28For more information about an error, try `rustc --explain E0061`.