about summary refs log tree commit diff
path: root/src/test/compile-fail/use-after-move-self.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/use-after-move-self.rs')
-rw-r--r--src/test/compile-fail/use-after-move-self.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/compile-fail/use-after-move-self.rs b/src/test/compile-fail/use-after-move-self.rs
index 56e5fdce3cf..8d1ab1bcd94 100644
--- a/src/test/compile-fail/use-after-move-self.rs
+++ b/src/test/compile-fail/use-after-move-self.rs
@@ -8,8 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+
 struct S {
-    x: ~int
+    x: Box<int>,
 }
 
 impl S {
@@ -22,6 +23,6 @@ impl S {
 }
 
 fn main() {
-    let x = S { x: ~1 };
+    let x = S { x: box 1 };
     println!("{}", x.foo());
 }