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