1 warning: unused variable: `i_think_continually`
2 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:26:9
4 LL | let i_think_continually = 2;
5 | ^^^^^^^^^^^^^^^^^^^ help: consider prefixing with an underscore: `_i_think_continually`
7 note: lint level defined here
8 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:5: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:33:13
17 LL | let mut mut_unused_var = 1;
18 | ^^^^^^^^^^^^^^ help: consider prefixing with an underscore: `_mut_unused_var`
20 warning: unused variable: `var`
21 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:37:14
23 LL | let (mut var, unused_var) = (1, 2);
24 | ^^^ help: consider prefixing with an underscore: `_var`
26 warning: unused variable: `unused_var`
27 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:37:19
29 LL | let (mut var, unused_var) = (1, 2);
30 | ^^^^^^^^^^ help: consider prefixing with an underscore: `_unused_var`
32 warning: unused variable: `corridors_of_light`
33 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:45: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:46: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:48:9
49 LL | hours_are_suns = false;
52 note: lint level defined here
53 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:5:9
55 LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
57 = note: `#[warn(unused_assignments)]` implied by `#[warn(unused)]`
58 = help: maybe it is overwritten before being read?
60 warning: unused variable: `fire`
61 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:52:32
63 LL | let LovelyAmbition { lips, fire } = the_spirit;
64 | ^^^^ help: try ignoring the field: `fire: _`
66 warning: unused variable: `case`
67 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:61:23
69 LL | Large::Suit { case } => {}
70 | ^^^^ help: try ignoring the field: `case: _`
72 warning: unused variable: `case`
73 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:66:24
75 LL | &Large::Suit { case } => {}
76 | ^^^^ help: try ignoring the field: `case: _`
78 warning: unused variable: `case`
79 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:71:27
81 LL | box Large::Suit { case } => {}
82 | ^^^^ help: try ignoring the field: `case: _`
84 warning: unused variable: `case`
85 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:76:24
87 LL | (Large::Suit { case },) => {}
88 | ^^^^ help: try ignoring the field: `case: _`
90 warning: unused variable: `case`
91 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:81:24
93 LL | [Large::Suit { case }] => {}
94 | ^^^^ help: try ignoring the field: `case: _`
96 warning: unused variable: `case`
97 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:86:29
99 LL | Tuple(Large::Suit { case }, ()) => {}
100 | ^^^^ help: try ignoring the field: `case: _`
102 warning: variable does not need to be mutable
103 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:33:9
105 LL | let mut mut_unused_var = 1;
108 | help: remove this `mut`
110 note: lint level defined here
111 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:5:9
113 LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
115 = note: `#[warn(unused_mut)]` implied by `#[warn(unused)]`
117 warning: variable does not need to be mutable
118 --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:37:10
120 LL | let (mut var, unused_var) = (1, 2);
123 | help: remove this `mut`