summaryrefslogtreecommitdiffstats
path: root/src/test/ui/match/issue-56685.stderr
blob: ccf357d4aa00e493e8fff4678b86709c1f3226c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
error: unused variable: `x`
  --> $DIR/issue-56685.rs:14:14
   |
LL |         E::A(x) | E::B(x) => {}
   |              ^         ^
   |
note: the lint level is defined here
  --> $DIR/issue-56685.rs:2:9
   |
LL | #![deny(unused_variables)]
   |         ^^^^^^^^^^^^^^^^
help: if this is intentional, prefix it with an underscore
   |
LL |         E::A(_x) | E::B(_x) => {}
   |              ~~         ~~

error: unused variable: `x`
  --> $DIR/issue-56685.rs:25:14
   |
LL |         F::A(x, y) | F::B(x, y) => { y },
   |              ^            ^
   |
help: if this is intentional, prefix it with an underscore
   |
LL |         F::A(_x, y) | F::B(_x, y) => { y },
   |              ~~            ~~

error: unused variable: `a`
  --> $DIR/issue-56685.rs:27:14
   |
LL |         F::C(a, b) => { 3 }
   |              ^ help: if this is intentional, prefix it with an underscore: `_a`

error: unused variable: `b`
  --> $DIR/issue-56685.rs:27:17
   |
LL |         F::C(a, b) => { 3 }
   |                 ^ help: if this is intentional, prefix it with an underscore: `_b`

error: unused variable: `x`
  --> $DIR/issue-56685.rs:32:25
   |
LL |     let _ = if let F::A(x, y) | F::B(x, y) = F::A(1, 2) {
   |                         ^            ^
   |
help: if this is intentional, prefix it with an underscore
   |
LL |     let _ = if let F::A(_x, y) | F::B(_x, y) = F::A(1, 2) {
   |                         ~~            ~~

error: unused variable: `x`
  --> $DIR/issue-56685.rs:39:20
   |
LL |     while let F::A(x, y) | F::B(x, y) = F::A(1, 2) {
   |                    ^            ^
   |
help: if this is intentional, prefix it with an underscore
   |
LL |     while let F::A(_x, y) | F::B(_x, y) = F::A(1, 2) {
   |                    ~~            ~~

error: aborting due to 6 previous errors