rust/src/test/run-pass/nested-alts.rs
Tim Chevalier 5b028f527f Remove support for the '.' after a nullary tag in a pattern
(Commit also includes lots of changes to remove '.'s that a git
merge messed up, or else it was monkeys.)
2012-01-19 01:04:59 -08:00

16 lines
270 B
Rust

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