]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-enum-variants/enum-variant-priority-higher-than-other-inherent.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / type-alias-enum-variants / enum-variant-priority-higher-than-other-inherent.stderr
1 error[E0061]: this function takes 1 parameter but 0 parameters were supplied
2   --> $DIR/enum-variant-priority-higher-than-other-inherent.rs:21:5
3    |
4 LL |     V(u8)
5    |     ----- defined here
6 ...
7 LL |     <E>::V();
8    |     ^^^^^^^^ expected 1 parameter
9
10 error[E0308]: mismatched types
11   --> $DIR/enum-variant-priority-higher-than-other-inherent.rs:22:17
12    |
13 LL |     let _: u8 = <E2>::V;
14    |                 ^^^^^^^ expected u8, found enum `E2`
15
16 error: aborting due to 2 previous errors
17
18 Some errors have detailed explanations: E0061, E0308.
19 For more information about an error, try `rustc --explain E0061`.