blob: da599c374074022061d205b65b433a7e0f280a26 [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 match expression has type `A`
|
= note: expected type `A`
found type `B`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.