|
1 | 1 | warning: unused variable: `i_think_continually`
|
2 |
| - --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:26:9 |
| 2 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:28:9 |
3 | 3 | |
|
4 | 4 | LL | let i_think_continually = 2;
|
5 | 5 | | ^^^^^^^^^^^^^^^^^^^ help: consider using `_i_think_continually` instead
|
6 | 6 | |
|
7 | 7 | note: lint level defined here
|
8 |
| - --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:13:9 |
| 8 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:15:9 |
9 | 9 | |
|
10 | 10 | LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
|
11 | 11 | | ^^^^^^
|
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:33:26 |
| 15 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:35: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:34:26 |
| 21 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:36: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:36:9 |
| 29 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:38:9 |
30 | 30 | |
|
31 | 31 | LL | hours_are_suns = false;
|
32 | 32 | | ^^^^^^^^^^^^^^
|
33 | 33 | |
|
34 | 34 | note: lint level defined here
|
35 |
| - --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:13:9 |
| 35 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:15:9 |
36 | 36 | |
|
37 | 37 | LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
|
38 | 38 | | ^^^^^^
|
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:44:24 |
| 42 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:46:24 |
43 | 43 | |
|
44 | 44 | LL | &Large::Suit { case } => {}
|
45 | 45 | | ^^^^ help: try ignoring the field: `case: _`
|
46 | 46 |
|
| 47 | +warning: unused variable: `case` |
| 48 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:50:27 |
| 49 | + | |
| 50 | +LL | box Large::Suit { case } => {} |
| 51 | + | ^^^^ help: try ignoring the field: `case: _` |
| 52 | + |
0 commit comments