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