rust/src/test/run-pass/nested-exhaustive-alt.rs

9 lines
233 B
Rust
Raw Normal View History

2012-02-15 10:09:52 -06:00
fn main() {
2012-08-20 14:23:37 -05:00
match @{foo: true, bar: Some(10), baz: 20} {
@{foo: true, bar: Some(_), _} => {}
@{foo: false, bar: None, _} => {}
@{foo: true, bar: None, _} => {}
@{foo: false, bar: Some(_), _} => {}
2012-02-15 10:09:52 -06:00
}
}