/src/test/compile-fail/or-patter-mismatch.rs
http://github.com/jruderman/rust · Rust · 5 lines · 2 code · 2 blank · 1 comment · 1 complexity · 35008b08760644fd9ced70ed9476d6a0 MD5 · raw file
- // 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) => { } } }