]>
Commit | Line | Data |
---|---|---|
9fa01778 XL |
1 | error: unused variable: `x` |
2 | --> $DIR/issue-56685.rs:14:14 | |
3 | | | |
4 | LL | E::A(x) | E::B(x) => {} | |
5 | | ^ ^ | |
6 | | | |
74b04a01 | 7 | note: the lint level is defined here |
9fa01778 XL |
8 | --> $DIR/issue-56685.rs:2:9 |
9 | | | |
10 | LL | #![deny(unused_variables)] | |
11 | | ^^^^^^^^^^^^^^^^ | |
ba9703b0 | 12 | help: if this is intentional, prefix it with an underscore |
9fa01778 XL |
13 | | |
14 | LL | E::A(_x) | E::B(_x) => {} | |
15 | | ^^ ^^ | |
16 | ||
17 | error: unused variable: `x` | |
18 | --> $DIR/issue-56685.rs:25:14 | |
19 | | | |
20 | LL | F::A(x, y) | F::B(x, y) => { y }, | |
21 | | ^ ^ | |
e74abb32 | 22 | | |
ba9703b0 | 23 | help: if this is intentional, prefix it with an underscore |
9fa01778 XL |
24 | | |
25 | LL | F::A(_x, y) | F::B(_x, y) => { y }, | |
26 | | ^^ ^^ | |
27 | ||
28 | error: unused variable: `a` | |
29 | --> $DIR/issue-56685.rs:27:14 | |
30 | | | |
31 | LL | F::C(a, b) => { 3 } | |
ba9703b0 | 32 | | ^ help: if this is intentional, prefix it with an underscore: `_a` |
9fa01778 XL |
33 | |
34 | error: unused variable: `b` | |
35 | --> $DIR/issue-56685.rs:27:17 | |
36 | | | |
37 | LL | F::C(a, b) => { 3 } | |
ba9703b0 | 38 | | ^ help: if this is intentional, prefix it with an underscore: `_b` |
9fa01778 XL |
39 | |
40 | error: unused variable: `x` | |
41 | --> $DIR/issue-56685.rs:32:25 | |
42 | | | |
43 | LL | let _ = if let F::A(x, y) | F::B(x, y) = F::A(1, 2) { | |
44 | | ^ ^ | |
e74abb32 | 45 | | |
ba9703b0 | 46 | help: if this is intentional, prefix it with an underscore |
9fa01778 XL |
47 | | |
48 | LL | let _ = if let F::A(_x, y) | F::B(_x, y) = F::A(1, 2) { | |
49 | | ^^ ^^ | |
50 | ||
51 | error: unused variable: `x` | |
52 | --> $DIR/issue-56685.rs:39:20 | |
53 | | | |
54 | LL | while let F::A(x, y) | F::B(x, y) = F::A(1, 2) { | |
55 | | ^ ^ | |
e74abb32 | 56 | | |
ba9703b0 | 57 | help: if this is intentional, prefix it with an underscore |
9fa01778 XL |
58 | | |
59 | LL | while let F::A(_x, y) | F::B(_x, y) = F::A(1, 2) { | |
60 | | ^^ ^^ | |
61 | ||
62 | error: aborting due to 6 previous errors | |
63 |