File tree 2 files changed +6
-0
lines changed 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
error: value assigned to `x` is never read
2
+ (maybe it is overwritten before being read)
2
3
--> $DIR/liveness-dead.rs:19:13
3
4
|
4
5
LL | let mut x: isize = 3; //~ ERROR: value assigned to `x` is never read
@@ -11,18 +12,21 @@ LL | #![deny(unused_assignments)]
11
12
| ^^^^^^^^^^^^^^^^^^
12
13
13
14
error: value assigned to `x` is never read
15
+ (maybe it is overwritten before being read)
14
16
--> $DIR/liveness-dead.rs:27:5
15
17
|
16
18
LL | x = 4; //~ ERROR: value assigned to `x` is never read
17
19
| ^
18
20
19
21
error: value passed to `x` is never read
22
+ (maybe it is overwritten before being read)
20
23
--> $DIR/liveness-dead.rs:30:11
21
24
|
22
25
LL | fn f4(mut x: i32) { //~ ERROR: value passed to `x` is never read
23
26
| ^
24
27
25
28
error: value assigned to `x` is never read
29
+ (maybe it is overwritten before being read)
26
30
--> $DIR/liveness-dead.rs:37:5
27
31
|
28
32
LL | x = 4; //~ ERROR: value assigned to `x` is never read
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ LL | let mut x = 3;
50
50
= note: consider using `_x` instead
51
51
52
52
error: value assigned to `x` is never read
53
+ (maybe it is overwritten before being read)
53
54
--> $DIR/liveness-unused.rs:42:5
54
55
|
55
56
LL | x += 4;
@@ -102,6 +103,7 @@ LL | let x;
102
103
= note: consider using `_x` instead
103
104
104
105
error: value assigned to `x` is never read
106
+ (maybe it is overwritten before being read)
105
107
--> $DIR/liveness-unused.rs:126:9
106
108
|
107
109
LL | x = 0; //~ ERROR value assigned to `x` is never read
You can’t perform that action at this time.
0 commit comments