about summary refs log tree commit diff
path: root/src/test/compile-fail/borrowck-move-subcomponent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/borrowck-move-subcomponent.rs')
-rw-r--r--src/test/compile-fail/borrowck-move-subcomponent.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/test/compile-fail/borrowck-move-subcomponent.rs b/src/test/compile-fail/borrowck-move-subcomponent.rs
index 6940c85e0e6..a29a171e935 100644
--- a/src/test/compile-fail/borrowck-move-subcomponent.rs
+++ b/src/test/compile-fail/borrowck-move-subcomponent.rs
@@ -11,19 +11,15 @@
 // Tests that the borrow checker checks all components of a path when moving
 // out.
 
-#![no_std]
-
-#[lang="sized"]
-pub trait Sized {}
 
 struct S {
-  x : ~int
+  x : Box<int>
 }
 
 fn f<T>(_: T) {}
 
 fn main() {
-  let a : S = S { x : ~1 };
+  let a : S = S { x : box 1 };
   let pb = &a;
   let S { x: ax } = a;  //~ ERROR cannot move out
   f(pb);