about summary refs log tree commit diff
path: root/src/test/compile-fail/liveness-assign-imm-local-with-init.rs
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2018-06-15 05:49:53 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2018-06-19 19:41:54 +0200
commita32fca71ed038542c1c92cbcd8b80b71ecc7690c (patch)
treed671591289e3061a5473d46f970676f5bad2c67c /src/test/compile-fail/liveness-assign-imm-local-with-init.rs
parent35971ccc4127ca74b684dd23b8cd54aa89ef8d96 (diff)
downloadrust-a32fca71ed038542c1c92cbcd8b80b71ecc7690c.tar.gz
rust-a32fca71ed038542c1c92cbcd8b80b71ecc7690c.zip
Update the existing compile-fail tests to reflect diagnostic changes in NLL.
Diffstat (limited to 'src/test/compile-fail/liveness-assign-imm-local-with-init.rs')
-rw-r--r--src/test/compile-fail/liveness-assign-imm-local-with-init.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/compile-fail/liveness-assign-imm-local-with-init.rs b/src/test/compile-fail/liveness-assign-imm-local-with-init.rs
index 7204b5d5f2e..672e9fab837 100644
--- a/src/test/compile-fail/liveness-assign-imm-local-with-init.rs
+++ b/src/test/compile-fail/liveness-assign-imm-local-with-init.rs
@@ -14,6 +14,7 @@
 fn test() {
     let v: isize = 1; //[ast]~ NOTE first assignment
                       //[mir]~^ NOTE first assignment
+                      //[mir]~| NOTE consider changing this to `mut v`
     v.clone();
     v = 2; //[ast]~ ERROR cannot assign twice to immutable variable
            //[mir]~^ ERROR cannot assign twice to immutable variable `v`