rust/src/test/compile-fail/unreachable-arm.rs

6 lines
143 B
Rust
Raw Normal View History

// error-pattern:unreachable pattern
enum foo { a(@foo, int), b(uint), }
2012-08-06 14:34:08 -05:00
fn main() { match b(1u) { b(_) | a(@_, 1) => { } a(_, 1) => { } } }