rust/src/test/run-pass/nested-alts.rs

16 lines
274 B
Rust

fn baz() -> ! { fail; }
fn foo() {
alt some::<int>(5) {
some::<int>(x) {
let mut bar;
alt none::<int> { none::<int> { bar = 5; } _ { baz(); } }
log(debug, bar);
}
none::<int> { #debug("hello"); }
}
}
fn main() { foo(); }