1 warning: unused variable: `i_think_continually`
2 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:36:9
4 LL | let i_think_continually = 2;
5 | ^^^^^^^^^^^^^^^^^^^ help: consider using `_i_think_continually` instead
7 note: lint level defined here
8 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:15:9
10 LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
12 = note: #[warn(unused_variables)] implied by #[warn(unused)]
14 warning: unused variable: `mut_unused_var`
15 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:43:13
17 LL | let mut mut_unused_var = 1;
18 | ^^^^^^^^^^^^^^ help: consider using `_mut_unused_var` instead
20 warning: unused variable: `var`
21 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:45:14
23 LL | let (mut var, unused_var) = (1, 2);
24 | ^^^ help: consider using `_var` instead
26 warning: unused variable: `unused_var`
27 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:45:19
29 LL | let (mut var, unused_var) = (1, 2);
30 | ^^^^^^^^^^ help: consider using `_unused_var` instead
32 warning: unused variable: `corridors_of_light`
33 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:47:26
35 LL | if let SoulHistory { corridors_of_light,
36 | ^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `corridors_of_light: _`
38 warning: variable `hours_are_suns` is assigned to, but never used
39 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:48:30
41 LL | mut hours_are_suns,
44 = note: consider using `_hours_are_suns` instead
46 warning: value assigned to `hours_are_suns` is never read
47 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:50:9
49 LL | hours_are_suns = false;
52 note: lint level defined here
53 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:15:9
55 LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
57 = note: #[warn(unused_assignments)] implied by #[warn(unused)]
59 warning: unused variable: `fire`
60 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:54:32
62 LL | let LovelyAmbition { lips, fire } = the_spirit;
63 | ^^^^ help: try ignoring the field: `fire: _`
65 warning: unused variable: `case`
66 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:63:23
68 LL | Large::Suit { case } => {}
69 | ^^^^ help: try ignoring the field: `case: _`
71 warning: unused variable: `case`
72 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:68:24
74 LL | &Large::Suit { case } => {}
75 | ^^^^ help: try ignoring the field: `case: _`
77 warning: unused variable: `case`
78 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:73:27
80 LL | box Large::Suit { case } => {}
81 | ^^^^ help: try ignoring the field: `case: _`
83 warning: unused variable: `case`
84 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:78:24
86 LL | (Large::Suit { case },) => {}
87 | ^^^^ help: try ignoring the field: `case: _`
89 warning: unused variable: `case`
90 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:83:24
92 LL | [Large::Suit { case }] => {}
93 | ^^^^ help: try ignoring the field: `case: _`
95 warning: unused variable: `case`
96 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:88:29
98 LL | Tuple(Large::Suit { case }, ()) => {}
99 | ^^^^ help: try ignoring the field: `case: _`
101 warning: variable does not need to be mutable
102 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:43:9
104 LL | let mut mut_unused_var = 1;
107 | help: remove this `mut`
109 note: lint level defined here
110 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:15:9
112 LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
114 = note: #[warn(unused_mut)] implied by #[warn(unused)]
116 warning: variable does not need to be mutable
117 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:45:10
119 LL | let (mut var, unused_var) = (1, 2);
122 | help: remove this `mut`