blob: bb4deee2569d147a81b1560792ddc8f1f23af53c [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/match-tag-unary.rs:16:43
|
LL | fn main() { let x: a = a::A(0); match x { b::B(y) => { } } }
| ^^^^^^^ 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`.