15 Variant { field: String }
20 E::Variant { ref field } => (), //~ ERROR unused variable
25 let s = S { f1: 123 };
26 let S { ref f1 } = s; //~ ERROR unused variable
28 let points = vec![Point { x: 1, y: 2 }];
29 let _: i32 = points.iter().map(|Point { x, y }| y).sum(); //~ ERROR unused variable
31 match (Point { x: 1, y: 2 }) {
32 Point { y, ref mut x } => y, //~ ERROR unused variable