about summary refs log tree commit diff
path: root/src/test/compile-fail/liveness-assign-imm-local-with-drop.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/liveness-assign-imm-local-with-drop.rs')
-rw-r--r--src/test/compile-fail/liveness-assign-imm-local-with-drop.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/compile-fail/liveness-assign-imm-local-with-drop.rs b/src/test/compile-fail/liveness-assign-imm-local-with-drop.rs
index b4fb33ca15e..bb61a9037d9 100644
--- a/src/test/compile-fail/liveness-assign-imm-local-with-drop.rs
+++ b/src/test/compile-fail/liveness-assign-imm-local-with-drop.rs
@@ -14,6 +14,7 @@
 fn test() {
     let b = Box::new(1); //[ast]~ NOTE first assignment
                          //[mir]~^ NOTE first assignment
+                         //[mir]~| NOTE consider changing this to `mut b`
     drop(b);
     b = Box::new(2); //[ast]~ ERROR cannot assign twice to immutable variable
                      //[mir]~^ ERROR cannot assign twice to immutable variable `b`