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

6 lines
135 B
Rust
Raw Normal View History

// error-pattern:unreachable pattern
2012-01-19 18:01:47 -06:00
enum foo { a(@foo, int); b(uint); }
fn main() { alt b(1u) { b(_) | a(@_, 1) { } a(_, 1) { } } }