rust/src/test/run-pass/expr-alt-fail-all.rs
2011-07-27 15:54:33 +02:00

12 lines
No EOL
246 B
Rust

// When all branches of an alt expression result in fail, the entire
// alt expression results in fail.
fn main() {
let x =
alt true {
true { 10 }
false { alt true { true { fail } false { fail } } }
};
}