2019-01-25 15:56:27 +00:00
|
|
|
error: unused variable: `x`
|
|
|
|
--> $DIR/issue-56685.rs:14:14
|
|
|
|
|
|
|
|
|
LL | E::A(x) | E::B(x) => {}
|
|
|
|
| ^ ^
|
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2019-01-25 15:56:27 +00:00
|
|
|
--> $DIR/issue-56685.rs:2:9
|
|
|
|
|
|
|
|
|
LL | #![deny(unused_variables)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2020-03-23 08:02:46 +00:00
|
|
|
help: if this is intentional, prefix it with an underscore
|
2019-01-25 15:56:27 +00:00
|
|
|
|
|
|
|
|
LL | E::A(_x) | E::B(_x) => {}
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~ ~~
|
2019-01-25 15:56:27 +00:00
|
|
|
|
|
|
|
error: unused variable: `x`
|
|
|
|
--> $DIR/issue-56685.rs:25:14
|
|
|
|
|
|
|
|
|
LL | F::A(x, y) | F::B(x, y) => { y },
|
|
|
|
| ^ ^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2020-03-23 08:02:46 +00:00
|
|
|
help: if this is intentional, prefix it with an underscore
|
2019-01-25 15:56:27 +00:00
|
|
|
|
|
|
|
|
LL | F::A(_x, y) | F::B(_x, y) => { y },
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~ ~~
|
2019-01-25 15:56:27 +00:00
|
|
|
|
|
|
|
error: unused variable: `a`
|
|
|
|
--> $DIR/issue-56685.rs:27:14
|
|
|
|
|
|
|
|
|
LL | F::C(a, b) => { 3 }
|
2020-03-23 08:02:46 +00:00
|
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_a`
|
2019-01-25 15:56:27 +00:00
|
|
|
|
|
|
|
error: unused variable: `b`
|
|
|
|
--> $DIR/issue-56685.rs:27:17
|
|
|
|
|
|
|
|
|
LL | F::C(a, b) => { 3 }
|
2020-03-23 08:02:46 +00:00
|
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_b`
|
2019-01-25 15:56:27 +00:00
|
|
|
|
|
|
|
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) {
|
|
|
|
| ^ ^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2020-03-23 08:02:46 +00:00
|
|
|
help: if this is intentional, prefix it with an underscore
|
2019-01-25 15:56:27 +00:00
|
|
|
|
|
|
|
|
LL | let _ = if let F::A(_x, y) | F::B(_x, y) = F::A(1, 2) {
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~ ~~
|
2019-01-25 15:56:27 +00:00
|
|
|
|
|
|
|
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) {
|
|
|
|
| ^ ^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2020-03-23 08:02:46 +00:00
|
|
|
help: if this is intentional, prefix it with an underscore
|
2019-01-25 15:56:27 +00:00
|
|
|
|
|
|
|
|
LL | while let F::A(_x, y) | F::B(_x, y) = F::A(1, 2) {
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~ ~~
|
2019-01-25 15:56:27 +00:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|