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

16 lines
274 B
Rust
Raw Normal View History

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);
2011-07-27 07:19:39 -05:00
}
none::<int> { debug!{"hello"}; }
}
}
fn main() { foo(); }