2 #![allow(unused_assignments)]
3 #![allow(unused_variables)]
4 #![allow(non_shorthand_field_patterns)]
7 struct Foo { x: isize, y: isize }
8 let mut f = Foo { x: 10, y: 0 };
10 Foo { ref mut x, .. } => *x = 11,
13 Foo { ref x, ref y } => {
19 Foo { mut x, y: ref mut y } => {