]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/issue-56685.stderr
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / ui / match / 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: the lint level is defined here
8   --> $DIR/issue-56685.rs:2:9
9    |
10 LL | #![deny(unused_variables)]
11    |         ^^^^^^^^^^^^^^^^
12 help: if this is intentional, prefix it 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    |
23 help: if this is intentional, prefix it with an underscore
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 }
32    |              ^ help: if this is intentional, prefix it with an underscore: `_a`
33
34 error: unused variable: `b`
35   --> $DIR/issue-56685.rs:27:17
36    |
37 LL |         F::C(a, b) => { 3 }
38    |                 ^ help: if this is intentional, prefix it with an underscore: `_b`
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    |                         ^            ^
45    |
46 help: if this is intentional, prefix it with an underscore
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    |                    ^            ^
56    |
57 help: if this is intentional, prefix it with an underscore
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