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

5 lines
133 B
Rust
Raw Normal View History

// error-pattern:unreachable pattern
tag foo { a(@foo, int); b(uint); }
2011-07-27 07:19:39 -05:00
fn main() { alt b(1u) { b(_) | a(@_, 1) { } a(_, 1) { } } }