]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/match-tag-nullary.rs:4:40 |
b7449926 | 3 | | |
74b04a01 XL |
4 | LL | enum B { B } |
5 | | - unit variant defined here | |
923072b8 | 6 | LL | |
532ac7d7 | 7 | LL | fn main() { let x: A = A::A; match x { B::B => { } } } |
74b04a01 XL |
8 | | - ^^^^ expected enum `A`, found enum `B` |
9 | | | | |
10 | | this expression has type `A` | |
b7449926 XL |
11 | |
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0308`. |