]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-tag-unary.rs
Make some diagnostics not depend on the source of what they reference being available
[rust.git] / src / test / ui / match / match-tag-unary.rs
1 enum A { A(isize) }
2 enum B { B(isize) }
3
4 fn main() { let x: A = A::A(0); match x { B::B(y) => { } } } //~ ERROR mismatched types