2019-12-31 17:51:37 -06:00
|
|
|
error: unused variable: `j`
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:20:16
|
2019-12-31 17:51:37 -06:00
|
|
|
|
|
|
|
|
LL | A { i, j } | B { i, j } => {
|
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:4:9
|
2019-12-31 17:51:37 -06:00
|
|
|
|
|
|
|
|
LL | #![deny(unused)]
|
|
|
|
| ^^^^^^
|
|
|
|
= note: `#[deny(unused_variables)]` implied by `#[deny(unused)]`
|
|
|
|
help: try ignoring the field
|
|
|
|
|
|
|
|
|
LL | A { i, j: _ } | B { i, j: _ } => {
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~ ~~~~
|
2019-12-31 17:51:37 -06:00
|
|
|
|
|
|
|
error: unused variable: `j`
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:30:16
|
2019-12-31 17:51:37 -06:00
|
|
|
|
|
|
|
|
LL | A { i, ref j } | B { i, ref j } => {
|
|
|
|
| ^^^^^ ^^^^^
|
|
|
|
|
|
|
|
|
help: try ignoring the field
|
|
|
|
|
|
|
|
|
LL | A { i, j: _ } | B { i, j: _ } => {
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~ ~~~~
|
2019-12-31 17:51:37 -06:00
|
|
|
|
|
|
|
error: unused variable: `j`
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:40:21
|
2019-12-31 17:51:37 -06:00
|
|
|
|
|
|
|
|
LL | Some(A { i, j } | B { i, j }) => {
|
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: try ignoring the field
|
|
|
|
|
|
|
|
|
LL | Some(A { i, j: _ } | B { i, j: _ }) => {
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~ ~~~~
|
2019-12-31 17:51:37 -06:00
|
|
|
|
|
|
|
error: unused variable: `j`
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:52:21
|
2019-12-31 17:51:37 -06:00
|
|
|
|
|
|
|
|
LL | Some(A { i, ref j } | B { i, ref j }) => {
|
|
|
|
| ^^^^^ ^^^^^
|
|
|
|
|
|
|
|
|
help: try ignoring the field
|
|
|
|
|
|
|
|
|
LL | Some(A { i, j: _ } | B { i, j: _ }) => {
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~ ~~~~
|
2019-12-31 17:51:37 -06:00
|
|
|
|
2019-12-31 17:20:34 -06:00
|
|
|
error: unused variable: `i`
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:62:24
|
2019-12-31 17:20:34 -06:00
|
|
|
|
|
|
|
|
LL | MixedEnum::A { i } | MixedEnum::B(i) => {
|
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: try ignoring the field
|
|
|
|
|
|
2020-03-06 02:03:34 -06:00
|
|
|
LL | MixedEnum::A { i: _ } | MixedEnum::B(_) => {
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~ ~
|
2019-12-31 17:20:34 -06:00
|
|
|
|
|
|
|
error: unused variable: `i`
|
2020-11-21 16:05:17 -06:00
|
|
|
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:70:24
|
2019-12-31 17:20:34 -06:00
|
|
|
|
|
|
|
|
LL | MixedEnum::A { ref i } | MixedEnum::B(ref i) => {
|
|
|
|
| ^^^^^ ^^^^^
|
|
|
|
|
|
|
|
|
help: try ignoring the field
|
|
|
|
|
|
2020-03-06 02:03:34 -06:00
|
|
|
LL | MixedEnum::A { i: _ } | MixedEnum::B(_) => {
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~ ~
|
2019-12-31 17:20:34 -06:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2019-12-31 17:51:37 -06:00
|
|
|
|