1 error[E0308]: mismatched types
2 --> $DIR/match-tag-unary.rs:4:43
4 LL | fn main() { let x: A = A::A(0); match x { B::B(y) => { } } } //~ ERROR mismatched types
5 | - ^^^^^^^ expected enum `A`, found enum `B`
7 | this match expression has type `A`
9 = note: expected type `A`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0308`.