]> git.lizzy.rs Git - rust.git/blob - tests/ui/match/match-tag-nullary.rs
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[rust.git] / tests / ui / match / match-tag-nullary.rs
1 enum A { A }
2 enum B { B }
3
4 fn main() { let x: A = A::A; match x { B::B => { } } } //~ ERROR mismatched types