blob: de6d5bd993d62d067e44d16d48885598cd14f1e9 (
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
|
error: value assigned to `x` is never read
--> $DIR/liveness-dead.rs:9:13
|
LL | let mut x: isize = 3;
| ^
|
= help: maybe it is overwritten before being read?
note: the lint level is defined here
--> $DIR/liveness-dead.rs:2:9
|
LL | #![deny(unused_assignments)]
| ^^^^^^^^^^^^^^^^^^
error: value assigned to `x` is never read
--> $DIR/liveness-dead.rs:17:5
|
LL | x = 4;
| ^
|
= help: maybe it is overwritten before being read?
error: value passed to `x` is never read
--> $DIR/liveness-dead.rs:20:11
|
LL | fn f4(mut x: i32) {
| ^
|
= help: maybe it is overwritten before being read?
error: value assigned to `x` is never read
--> $DIR/liveness-dead.rs:27:5
|
LL | x = 4;
| ^
|
= help: maybe it is overwritten before being read?
error: aborting due to 4 previous errors
|