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