summary refs log tree commit diff
path: root/src/test/ui/lint/issue-47390-unused-variable-in-struct-pattern.stderr
blob: 35fe5479406df85c0e17e0985169e53924d9a17e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
warning: unused variable: `i_think_continually`
  --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:22:9
   |
LL |     let i_think_continually = 2;
   |         ^^^^^^^^^^^^^^^^^^^ help: consider using `_i_think_continually` instead
   |
note: lint level defined here
  --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:13:9
   |
LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
   |         ^^^^^^
   = 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
   |
LL |     if let SoulHistory { corridors_of_light,
   |                          ^^^^^^^^^^^^^^^^^^ 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
   |
LL |                          mut hours_are_suns,
   |                          ^^^^^^^^^^^^^^^^^^
   |
   = 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
   |
LL |         hours_are_suns = false;
   |         ^^^^^^^^^^^^^^
   |
note: lint level defined here
  --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:13:9
   |
LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
   |         ^^^^^^
   = note: #[warn(unused_assignments)] implied by #[warn(unused)]