2012-02-15 10:09:52 -06:00
|
|
|
fn main() {
|
2012-08-06 14:34:08 -05:00
|
|
|
match @{foo: true, bar: some(10), baz: 20} {
|
2012-08-03 21:59:04 -05:00
|
|
|
@{foo: true, bar: some(_), _} => {}
|
|
|
|
@{foo: false, bar: none, _} => {}
|
|
|
|
@{foo: true, bar: none, _} => {}
|
|
|
|
@{foo: false, bar: some(_), _} => {}
|
2012-02-15 10:09:52 -06:00
|
|
|
}
|
|
|
|
}
|