1
1
warning: unused variable: `i_think_continually`
2
- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:28 :9
2
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:31 :9
3
3
|
4
4
LL | let i_think_continually = 2;
5
5
| ^^^^^^^^^^^^^^^^^^^ help: consider using `_i_think_continually` instead
@@ -12,21 +12,21 @@ LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
12
12
= note: #[warn(unused_variables)] implied by #[warn(unused)]
13
13
14
14
warning: unused variable: `corridors_of_light`
15
- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:35 :26
15
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:38 :26
16
16
|
17
17
LL | if let SoulHistory { corridors_of_light,
18
18
| ^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `corridors_of_light: _`
19
19
20
20
warning: variable `hours_are_suns` is assigned to, but never used
21
- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:36 :26
21
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:39 :26
22
22
|
23
23
LL | mut hours_are_suns,
24
24
| ^^^^^^^^^^^^^^^^^^
25
25
|
26
26
= note: consider using `_hours_are_suns` instead
27
27
28
28
warning: value assigned to `hours_are_suns` is never read
29
- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:38 :9
29
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:41 :9
30
30
|
31
31
LL | hours_are_suns = false;
32
32
| ^^^^^^^^^^^^^^
@@ -39,14 +39,38 @@ LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
39
39
= note: #[warn(unused_assignments)] implied by #[warn(unused)]
40
40
41
41
warning: unused variable: `case`
42
- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:46:24
42
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:50:23
43
+ |
44
+ LL | Large::Suit { case } => {}
45
+ | ^^^^ help: try ignoring the field: `case: _`
46
+
47
+ warning: unused variable: `case`
48
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:55:24
43
49
|
44
50
LL | &Large::Suit { case } => {}
45
51
| ^^^^ help: try ignoring the field: `case: _`
46
52
47
53
warning: unused variable: `case`
48
- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:50 :27
54
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:60 :27
49
55
|
50
56
LL | box Large::Suit { case } => {}
51
57
| ^^^^ help: try ignoring the field: `case: _`
52
58
59
+ warning: unused variable: `case`
60
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:65:24
61
+ |
62
+ LL | (Large::Suit { case },) => {}
63
+ | ^^^^ help: try ignoring the field: `case: _`
64
+
65
+ warning: unused variable: `case`
66
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:70:24
67
+ |
68
+ LL | [Large::Suit { case }] => {}
69
+ | ^^^^ help: try ignoring the field: `case: _`
70
+
71
+ warning: unused variable: `case`
72
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:75:29
73
+ |
74
+ LL | Tuple(Large::Suit { case }, ()) => {}
75
+ | ^^^^ help: try ignoring the field: `case: _`
76
+
0 commit comments