summaryrefslogtreecommitdiffstats
path: root/tests/ui/match/match-tag-unary.rs
blob: aedceafb4398e0a68e71a291d1c9b38311d98fb6 (plain)
1
2
3
4
enum A { A(isize) }
enum B { B(isize) }

fn main() { let x: A = A::A(0); match x { B::B(y) => { } } } //~ ERROR mismatched types