2018-01-31 20:56:01 -08:00
|
|
|
warning: unused variable: `i_think_continually`
|
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:22:9
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | let i_think_continually = 2;
|
2018-01-31 20:56:01 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using `_i_think_continually` instead
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:13:9
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
|
2018-01-31 20:56:01 -08:00
|
|
|
| ^^^^^^
|
|
|
|
= note: #[warn(unused_variables)] implied by #[warn(unused)]
|
|
|
|
|
|
|
|
warning: unused variable: `corridors_of_light`
|
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:29:26
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | if let SoulHistory { corridors_of_light,
|
2018-01-31 20:56:01 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `corridors_of_light: _`
|
|
|
|
|
|
|
|
warning: variable `hours_are_suns` is assigned to, but never used
|
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:30:26
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | mut hours_are_suns,
|
2018-01-31 20:56:01 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: consider using `_hours_are_suns` instead
|
|
|
|
|
|
|
|
warning: value assigned to `hours_are_suns` is never read
|
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:32:9
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | hours_are_suns = false;
|
2018-01-31 20:56:01 -08:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:13:9
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
|
2018-01-31 20:56:01 -08:00
|
|
|
| ^^^^^^
|
|
|
|
= note: #[warn(unused_assignments)] implied by #[warn(unused)]
|
|
|
|
|