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

error: unused variable: `j`
  --> $DIR/issue-67691-unused-field-in-or-pattern.rs:30:16
   |
LL |         A { i, ref j } | B { i, ref j } => {
   |                ^^^^^            ^^^^^
   |
help: try ignoring the field
   |
LL |         A { i, j: _ } | B { i, j: _ } => {
   |                ~~~~            ~~~~

error: unused variable: `j`
  --> $DIR/issue-67691-unused-field-in-or-pattern.rs:40:21
   |
LL |         Some(A { i, j } | B { i, j }) => {
   |                     ^            ^
   |
help: try ignoring the field
   |
LL |         Some(A { i, j: _ } | B { i, j: _ }) => {
   |                     ~~~~            ~~~~

error: unused variable: `j`
  --> $DIR/issue-67691-unused-field-in-or-pattern.rs:52:21
   |
LL |         Some(A { i, ref j } | B { i, ref j }) => {
   |                     ^^^^^            ^^^^^
   |
help: try ignoring the field
   |
LL |         Some(A { i, j: _ } | B { i, j: _ }) => {
   |                     ~~~~            ~~~~

error: unused variable: `i`
  --> $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`
  --> $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