rust/src/test/run-pass/nested-exhaustive-alt.rs
2012-08-05 22:08:09 -07:00

9 lines
231 B
Rust

fn main() {
alt @{foo: true, bar: some(10), baz: 20} {
@{foo: true, bar: some(_), _} => {}
@{foo: false, bar: none, _} => {}
@{foo: true, bar: none, _} => {}
@{foo: false, bar: some(_), _} => {}
}
}