about summary refs log tree commit diff
path: root/src/test/compile-fail/borrowck-move-from-subpath-of-borrowed-path.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/borrowck-move-from-subpath-of-borrowed-path.rs')
-rw-r--r--src/test/compile-fail/borrowck-move-from-subpath-of-borrowed-path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/borrowck-move-from-subpath-of-borrowed-path.rs b/src/test/compile-fail/borrowck-move-from-subpath-of-borrowed-path.rs
index 6106644a263..35106487f34 100644
--- a/src/test/compile-fail/borrowck-move-from-subpath-of-borrowed-path.rs
+++ b/src/test/compile-fail/borrowck-move-from-subpath-of-borrowed-path.rs
@@ -12,7 +12,7 @@
 // borrowed path.
 
 fn main() {
-    let a = ~~2;
+    let a = box box 2;
     let b = &a;
 
     let z = *a; //~ ERROR: cannot move out of `*a` because it is borrowed