rust/src/test/run-pass/nested-alts.rs
2012-08-23 11:14:14 -07:00

16 lines
290 B
Rust

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