1 #![allow(nonstandard_style, unused_variables)]
2 #![deny(non_shorthand_field_patterns)]
12 x: x, //~ ERROR the `x:` in this pattern is redundant
13 y: ref y, //~ ERROR the `y:` in this pattern is redundant
14 } = Foo { x: 0, y: 0 };
19 } = Foo { x: 0, y: 0 };
25 match (Foo { x: 1, y: 1 }) {
26 Foo { x: x, ..} => {},
38 match (Bar { x: x }) {
50 match (Bar { x: Foo::x }) {
51 Bar { x: Foo::x } => {},