1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// run-pass struct Foo{ f : isize, } pub fn main() { let f = Foo{f: 1}; match f { Foo{f: 0} => panic!(), Foo{..} => (), } match f { Foo{f: 0} => panic!(), Foo{f: _f} => (), } match f { Foo{f: 0} => panic!(), _ => (), } }