]>
Commit | Line | Data |
---|---|---|
064997fb | 1 | error[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 | 4 | LL | <E>::V(); |
923072b8 | 5 | | ^^^^^^-- an argument of type `u8` is missing |
94222f64 XL |
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 | | ^ | |
923072b8 FG |
12 | help: provide the argument |
13 | | | |
14 | LL | <E>::V(/* u8 */); | |
f2b60f7d | 15 | | ~~~~~~~~~~ |
dc9dc135 XL |
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; | |
60c5eb7d XL |
21 | | -- ^^^^^^^ expected `u8`, found enum `E2` |
22 | | | | |
23 | | expected due to this | |
dc9dc135 XL |
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`. |