1 error: unused variable: `x`
2 --> $DIR/issue-56685.rs:14:14
4 LL | E::A(x) | E::B(x) => {}
7 note: lint level defined here
8 --> $DIR/issue-56685.rs:2:9
10 LL | #![deny(unused_variables)]
12 help: consider prefixing with an underscore
14 LL | E::A(_x) | E::B(_x) => {}
17 error: unused variable: `x`
18 --> $DIR/issue-56685.rs:25:14
20 LL | F::A(x, y) | F::B(x, y) => { y },
22 help: consider prefixing with an underscore
24 LL | F::A(_x, y) | F::B(_x, y) => { y },
27 error: unused variable: `a`
28 --> $DIR/issue-56685.rs:27:14
30 LL | F::C(a, b) => { 3 }
31 | ^ help: consider prefixing with an underscore: `_a`
33 error: unused variable: `b`
34 --> $DIR/issue-56685.rs:27:17
36 LL | F::C(a, b) => { 3 }
37 | ^ help: consider prefixing with an underscore: `_b`
39 error: unused variable: `x`
40 --> $DIR/issue-56685.rs:32:25
42 LL | let _ = if let F::A(x, y) | F::B(x, y) = F::A(1, 2) {
44 help: consider prefixing with an underscore
46 LL | let _ = if let F::A(_x, y) | F::B(_x, y) = F::A(1, 2) {
49 error: unused variable: `x`
50 --> $DIR/issue-56685.rs:39:20
52 LL | while let F::A(x, y) | F::B(x, y) = F::A(1, 2) {
54 help: consider prefixing with an underscore
56 LL | while let F::A(_x, y) | F::B(_x, y) = F::A(1, 2) {
59 error: aborting due to 6 previous errors