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

5 lines
110 B
Rust
Raw Normal View History

2011-05-21 13:07:44 -05:00
// error-pattern:explicit failure
2011-07-27 07:19:39 -05:00
fn main() { let x = if false { 0 } else if (true) { fail } else { 10 }; }