rust/src/test/run-pass/nested-alts.rs
2012-08-26 15:56:16 -07:00

15 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(); }