]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-56685.stderr
Rollup merge of #57504 - GuillaumeGomez:re-enable-history, r=QuietMisdreavus
[rust.git] / src / test / ui / issues / issue-56685.stderr
1 error: unused variable: `x`
2   --> $DIR/issue-56685.rs:14:14
3    |
4 LL |         E::A(x) | E::B(x) => {}
5    |              ^         ^
6    |
7 note: lint level defined here
8   --> $DIR/issue-56685.rs:2:9
9    |
10 LL | #![deny(unused_variables)]
11    |         ^^^^^^^^^^^^^^^^
12 help: consider prefixing with an underscore
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    |              ^            ^
22 help: consider prefixing with an underscore
23    |
24 LL |         F::A(_x, y) | F::B(_x, y) => { y },
25    |              ^^            ^^
26
27 error: unused variable: `a`
28   --> $DIR/issue-56685.rs:27:14
29    |
30 LL |         F::C(a, b) => { 3 }
31    |              ^ help: consider prefixing with an underscore: `_a`
32
33 error: unused variable: `b`
34   --> $DIR/issue-56685.rs:27:17
35    |
36 LL |         F::C(a, b) => { 3 }
37    |                 ^ help: consider prefixing with an underscore: `_b`
38
39 error: unused variable: `x`
40   --> $DIR/issue-56685.rs:32:25
41    |
42 LL |     let _ = if let F::A(x, y) | F::B(x, y) = F::A(1, 2) {
43    |                         ^            ^
44 help: consider prefixing with an underscore
45    |
46 LL |     let _ = if let F::A(_x, y) | F::B(_x, y) = F::A(1, 2) {
47    |                         ^^            ^^
48
49 error: unused variable: `x`
50   --> $DIR/issue-56685.rs:39:20
51    |
52 LL |     while let F::A(x, y) | F::B(x, y) = F::A(1, 2) {
53    |                    ^            ^
54 help: consider prefixing with an underscore
55    |
56 LL |     while let F::A(_x, y) | F::B(_x, y) = F::A(1, 2) {
57    |                    ^^            ^^
58
59 error: aborting due to 6 previous errors
60