about summary refs log tree commit diff
path: root/src/test/compile-fail/liveness-move-in-while.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/liveness-move-in-while.rs')
-rw-r--r--src/test/compile-fail/liveness-move-in-while.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail/liveness-move-in-while.rs b/src/test/compile-fail/liveness-move-in-while.rs
index 8aa85c03ad4..e32d8a78585 100644
--- a/src/test/compile-fail/liveness-move-in-while.rs
+++ b/src/test/compile-fail/liveness-move-in-while.rs
@@ -8,10 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-fn main() {
 
-    let y: ~int = ~42;
-    let mut x: ~int;
+fn main() {
+    let y: Box<int> = box 42;
+    let mut x: Box<int>;
     loop {
         println!("{:?}", y); //~ ERROR use of moved value: `y`
         while true { while true { while true { x = y; x.clone(); } } }