3 #![allow(non_shorthand_field_patterns)]
6 struct Pair { x: isize, y: isize }
10 match 10 { x if x < 7 => { 1 } x if x < 11 => { 2 } 10 => { 3 } _ => { 4 } };
14 match (Pair {x: 10, y: 20}) {
15 x if x.x < 5 && x.y < 5 => { 1 }
16 Pair {x: x, y: y} if x == 10 && y == 20 => { 2 }
17 Pair {x: _x, y: _y} => { 3 }