2 #![deny(unused_variables)]
4 // This test aims to check that unused variable suggestions update bindings in all
14 E::A(x) | E::B(x) => {}
15 //~^ ERROR unused variable: `x`
24 let _ = match F::A(1, 2) {
25 F::A(x, y) | F::B(x, y) => { y },
26 //~^ ERROR unused variable: `x`
28 //~^ ERROR unused variable: `a`
29 //~^^ ERROR unused variable: `b`
32 let _ = if let F::A(x, y) | F::B(x, y) = F::A(1, 2) {
33 //~^ ERROR unused variable: `x`
39 while let F::A(x, y) | F::B(x, y) = F::A(1, 2) {
40 //~^ ERROR unused variable: `x`