]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/move-2.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / move-2.rs
index da7d23ebddcb26e9f2faea9c50c2e3f088186591..6561a9b2d5b565c24a3f6c525400170ee4d7b4af 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
+struct X { x: int, y: int, z: int }
 
-fn main() { let x = @{x: 1, y: 2, z: 3}; let y = move x; assert (y.y == 2); }
+pub fn main() { let x = box X {x: 1, y: 2, z: 3}; let y = x; assert!((y.y == 2)); }