9 lines
233 B
Rust
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(_), _} => {}
|
|
}
|
|
}
|