blob: 902ccc94dde23c644445374e50b5988e0bbf4783 [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/match-tag-nullary.rs:4:40
|
LL | fn main() { let x: A = A::A; match x { B::B => { } } }
| ^^^^ expected enum `A`, found enum `B`
|
= note: expected type `A`
found type `B`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.