1 error: unused variable: `x`
2 --> $DIR/issue-56685.rs:14:14
4 LL | E::A(x) | E::B(x) => {}
7 note: the lint level is defined here
8 --> $DIR/issue-56685.rs:2:9
10 LL | #![deny(unused_variables)]
12 help: if this is intentional, prefix it 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 },
23 help: if this is intentional, prefix it with an underscore
25 LL | F::A(_x, y) | F::B(_x, y) => { y },
28 error: unused variable: `a`
29 --> $DIR/issue-56685.rs:27:14
31 LL | F::C(a, b) => { 3 }
32 | ^ help: if this is intentional, prefix it with an underscore: `_a`
34 error: unused variable: `b`
35 --> $DIR/issue-56685.rs:27:17
37 LL | F::C(a, b) => { 3 }
38 | ^ help: if this is intentional, prefix it with an underscore: `_b`
40 error: unused variable: `x`
41 --> $DIR/issue-56685.rs:32:25
43 LL | let _ = if let F::A(x, y) | F::B(x, y) = F::A(1, 2) {
46 help: if this is intentional, prefix it with an underscore
48 LL | let _ = if let F::A(_x, y) | F::B(_x, y) = F::A(1, 2) {
51 error: unused variable: `x`
52 --> $DIR/issue-56685.rs:39:20
54 LL | while let F::A(x, y) | F::B(x, y) = F::A(1, 2) {
57 help: if this is intentional, prefix it with an underscore
59 LL | while let F::A(_x, y) | F::B(_x, y) = F::A(1, 2) {
62 error: aborting due to 6 previous errors