]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-tag-nullary.rs
Make some diagnostics not depend on the source of what they reference being available
[rust.git] / src / test / 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