rust/src/test/compile-fail/or-patter-mismatch.rs
2012-08-06 15:36:30 -07:00

6 lines
147 B
Rust

// error-pattern: mismatched types
enum blah { a(int, int, uint), b(int, int), }
fn main() { match a(1, 1, 2u) { a(_, x, y) | b(x, y) => { } } }