rust/tests/ui/lint/unused/issue-67691-unused-field-in-or-pattern.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

75 lines
2.2 KiB
Plaintext
Raw Normal View History

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: _ } => {
| ~~~~ ~~~~
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: _ } => {
| ~~~~ ~~~~
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: _ }) => {
| ~~~~ ~~~~
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: _ }) => {
| ~~~~ ~~~~
2019-12-31 17:51:37 -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
|
LL | MixedEnum::A { i } | MixedEnum::B(i) => {
| ^ ^
|
help: try ignoring the field
|
LL | MixedEnum::A { i: _ } | MixedEnum::B(_) => {
| ~~~~ ~
error: unused variable: `i`
2020-11-21 16:05:17 -06:00
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:70:24
|
LL | MixedEnum::A { ref i } | MixedEnum::B(ref i) => {
| ^^^^^ ^^^^^
|
help: try ignoring the field
|
LL | MixedEnum::A { i: _ } | MixedEnum::B(_) => {
| ~~~~ ~
error: aborting due to 6 previous errors
2019-12-31 17:51:37 -06:00