rust/src/test/run-pass/nested-exhaustive-alt.rs
2012-08-06 15:36:30 -07:00

9 lines
233 B
Rust

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