fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
2.2 KiB74 linesraw
1error: unused variable: `j`
2  --> $DIR/issue-67691-unused-field-in-or-pattern.rs:21:16
3   |
4LL |         A { i, j } | B { i, j } => {
5   |                ^            ^
6   |
7note: the lint level is defined here
8  --> $DIR/issue-67691-unused-field-in-or-pattern.rs:5:9
9   |
10LL | #![deny(unused)]
11   |         ^^^^^^
12   = note: `#[deny(unused_variables)]` implied by `#[deny(unused)]`
13help: try ignoring the field
14   |
15LL |         A { i, j: _ } | B { i, j: _ } => {
16   |                ^^^^            ^^^^
17
18error: unused variable: `j`
19  --> $DIR/issue-67691-unused-field-in-or-pattern.rs:31:16
20   |
21LL |         A { i, ref j } | B { i, ref j } => {
22   |                ^^^^^            ^^^^^
23   |
24help: try ignoring the field
25   |
26LL |         A { i, j: _ } | B { i, j: _ } => {
27   |                ^^^^            ^^^^
28
29error: unused variable: `j`
30  --> $DIR/issue-67691-unused-field-in-or-pattern.rs:41:21
31   |
32LL |         Some(A { i, j } | B { i, j }) => {
33   |                     ^            ^
34   |
35help: try ignoring the field
36   |
37LL |         Some(A { i, j: _ } | B { i, j: _ }) => {
38   |                     ^^^^            ^^^^
39
40error: unused variable: `j`
41  --> $DIR/issue-67691-unused-field-in-or-pattern.rs:53:21
42   |
43LL |         Some(A { i, ref j } | B { i, ref j }) => {
44   |                     ^^^^^            ^^^^^
45   |
46help: try ignoring the field
47   |
48LL |         Some(A { i, j: _ } | B { i, j: _ }) => {
49   |                     ^^^^            ^^^^
50
51error: unused variable: `i`
52  --> $DIR/issue-67691-unused-field-in-or-pattern.rs:63:24
53   |
54LL |         MixedEnum::A { i } | MixedEnum::B(i) => {
55   |                        ^                  ^
56   |
57help: try ignoring the field
58   |
59LL |         MixedEnum::A { i: _ } | MixedEnum::B(_) => {
60   |                        ^^^^                  ^
61
62error: unused variable: `i`
63  --> $DIR/issue-67691-unused-field-in-or-pattern.rs:71:24
64   |
65LL |         MixedEnum::A { ref i } | MixedEnum::B(ref i) => {
66   |                        ^^^^^                  ^^^^^
67   |
68help: try ignoring the field
69   |
70LL |         MixedEnum::A { i: _ } | MixedEnum::B(_) => {
71   |                        ^^^^                  ^
72
73error: aborting due to 6 previous errors
74