rust/src/test/run-fail/expr-alt-fail.rs

6 lines
107 B
Rust
Raw Normal View History

2011-05-13 13:42:23 -05:00
// error-pattern:explicit failure
2012-08-06 14:34:08 -05:00
fn main() { let x = match true { false => { 0 } true => { fail } }; }