rust/src/test/ui/or-pattern-mismatch.rs
2018-12-25 21:08:33 -07:00

5 lines
164 B
Rust

enum Blah { A(isize, isize, usize), B(isize, isize) }
fn main() { match Blah::A(1, 1, 2) { Blah::A(_, x, y) | Blah::B(x, y) => { } } }
//~^ ERROR mismatched types