rust/src/test/run-pass/expr-alt-fail-all.rs
Brian Anderson 8102926b4b test: Use more sensible cases in expr-alt-fail-all.
Thanks for the review, Jesse.
2011-05-21 20:01:38 -04:00

21 lines
328 B
Rust

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