diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/liveness/liveness-dead.stderr | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/test/ui/liveness/liveness-dead.stderr b/src/test/ui/liveness/liveness-dead.stderr new file mode 100644 index 000000000..12680ab11 --- /dev/null +++ b/src/test/ui/liveness/liveness-dead.stderr @@ -0,0 +1,39 @@ +error: value assigned to `x` is never read + --> $DIR/liveness-dead.rs:9:13 + | +LL | let mut x: isize = 3; + | ^ + | +note: the lint level is defined here + --> $DIR/liveness-dead.rs:2:9 + | +LL | #![deny(unused_assignments)] + | ^^^^^^^^^^^^^^^^^^ + = help: maybe it is overwritten before being read? + +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 + |