3 #![allow(nonstandard_style, unused_variables, unused_mut)]
4 #![deny(non_shorthand_field_patterns)]
14 x: x, //~ ERROR the `x:` in this pattern is redundant
15 y: ref y, //~ ERROR the `y:` in this pattern is redundant
16 } = Foo { x: 0, y: 0 };
21 } = Foo { x: 0, y: 0 };
27 match (Foo { x: 1, y: 1 }) {
28 Foo { x: x, ..} => {},
40 match (Bar { x: x }) {
52 match (Bar { x: Foo::x }) {
53 Bar { x: Foo::x } => {},
65 x: mut x, //~ ERROR the `x:` in this pattern is redundant
66 y: ref y, //~ ERROR the `y:` in this pattern is redundant
67 z: ref mut z, //~ ERROR the `z:` in this pattern is redundant
68 } = Baz { x: 0, y: 0, z: 0 };