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

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