2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2015-03-25 17:06:52 -07:00
|
|
|
struct Foo { foo: bool, bar: Option<isize>, baz: isize }
|
2013-01-25 22:46:32 -08:00
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2014-06-13 19:09:12 -07:00
|
|
|
match (Foo{foo: true, bar: Some(10), baz: 20}) {
|
2014-01-03 15:08:48 -08:00
|
|
|
Foo{foo: true, bar: Some(_), ..} => {}
|
|
|
|
|
Foo{foo: false, bar: None, ..} => {}
|
|
|
|
|
Foo{foo: true, bar: None, ..} => {}
|
|
|
|
|
Foo{foo: false, bar: Some(_), ..} => {}
|
2012-02-15 17:09:52 +01:00
|
|
|
}
|
|
|
|
|
}
|