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