3 #![allow(unused_assignments)]
4 #![allow(non_camel_case_types)]
5 #![allow(non_shorthand_field_patterns)]
8 fn foo(&self, mut x: isize) -> isize {
19 let (a, mut b) = (23, 4);
26 assert_eq!(X.foo(2), 76);
33 let (x, mut y) = (32, Bar::Foo(21));
45 y = Bar::Baz(10.0, 3);
48 fn check_bar(y: &Bar) {
60 fn foo1((x, mut y): (f64, isize), mut z: isize) -> isize {
69 let A { x: mut x } = A { x: 10 };
74 (|A { x: mut t }: A| { t = t+1; t })(A { x: 34 });