]> git.lizzy.rs Git - rust.git/blob - tests/ui/liveness/liveness-consts.stderr
Auto merge of #100178 - mati865:upgrade-mingw-w64-on-CI, r=nikic
[rust.git] / tests / ui / liveness / liveness-consts.stderr
1 warning: variable `a` is assigned to, but never used
2   --> $DIR/liveness-consts.rs:7:13
3    |
4 LL |     let mut a = 0;
5    |             ^
6    |
7    = note: consider using `_a` instead
8 note: the lint level is defined here
9   --> $DIR/liveness-consts.rs:2:9
10    |
11 LL | #![warn(unused)]
12    |         ^^^^^^
13    = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
14
15 warning: value assigned to `b` is never read
16   --> $DIR/liveness-consts.rs:17:5
17    |
18 LL |     b += 1;
19    |     ^
20    |
21    = help: maybe it is overwritten before being read?
22    = note: `#[warn(unused_assignments)]` implied by `#[warn(unused)]`
23
24 warning: unused variable: `e`
25   --> $DIR/liveness-consts.rs:24:13
26    |
27 LL |         let e = 1;
28    |             ^ help: if this is intentional, prefix it with an underscore: `_e`
29
30 warning: unused variable: `s`
31   --> $DIR/liveness-consts.rs:33:24
32    |
33 LL | pub fn f(x: [u8; { let s = 17; 100 }]) -> [u8;  { let z = 18; 100 }] {
34    |                        ^ help: if this is intentional, prefix it with an underscore: `_s`
35
36 warning: unused variable: `z`
37   --> $DIR/liveness-consts.rs:33:55
38    |
39 LL | pub fn f(x: [u8; { let s = 17; 100 }]) -> [u8;  { let z = 18; 100 }] {
40    |                                                       ^ help: if this is intentional, prefix it with an underscore: `_z`
41
42 warning: value assigned to `t` is never read
43   --> $DIR/liveness-consts.rs:42:9
44    |
45 LL |         t = t + t;
46    |         ^
47    |
48    = help: maybe it is overwritten before being read?
49
50 warning: unused variable: `w`
51   --> $DIR/liveness-consts.rs:49:13
52    |
53 LL |         let w = 10;
54    |             ^ help: if this is intentional, prefix it with an underscore: `_w`
55
56 warning: unused variable: `z`
57   --> $DIR/liveness-consts.rs:60:13
58    |
59 LL |         let z = 42;
60    |             ^ help: if this is intentional, prefix it with an underscore: `_z`
61
62 warning: 8 warnings emitted
63