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:
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.rs4
1 files changed, 2 insertions, 2 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 c830c2d0175..8eb84525b83 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
@@ -10,9 +10,9 @@
 
 fn test() {
     let v: int = 1; //~ NOTE prior assignment occurs here
-    copy v;
+    v.clone();
     v = 2; //~ ERROR re-assignment of immutable variable
-    copy v;
+    v.clone();
 }
 
 fn main() {