1 2 3 4 5 6 7 8
fn main() { struct Foo { x: isize } match (Foo { x: 10 }) { Foo { ref x: ref x } => {}, //~ ERROR expected `,` //~| ERROR pattern does not mention field `x` _ => {} } }