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(_), _} => {} } }