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