rust/src/test/run-pass/expr-alt-fail-all.rs
2012-08-06 15:36:30 -07:00

13 lines
267 B
Rust

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