]> git.lizzy.rs Git - rust.git/blob - tests/ui/match/match-tag-nullary.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[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