rust/src/test/run-pass/alt-path.rs
Tim Chevalier fba35e1a3c Require alts to be exhaustive
middle::check_alt does the work. Lots of changes to add default cases
into alts that were previously inexhaustive.
2012-01-31 10:08:24 -08:00

10 lines
117 B
Rust

mod m1 {
enum foo { foo1, foo2, }
}
fn bar(x: m1::foo) { alt x { m1::foo1 { } m1::foo2 { } } }
fn main() { }