rust/src/test/run-pass/nested-exhaustive-alt.rs
2012-08-26 15:56:16 -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(_), _} => {}
}
}