]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/deref-lval.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / deref-lval.rs
index f507956960639809650c0887da25807da48609a6..ead0683b87090c67b1d0c42702be5b4414f91beb 100644 (file)
@@ -8,15 +8,13 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(managed_boxes)]
-
-extern crate debug;
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 use std::cell::Cell;
-use std::gc::GC;
 
 pub fn main() {
-    let x = box(GC) Cell::new(5);
-    x.set(1000);
-    println!("{:?}", x.get());
+    let x = box Cell::new(5i);
+    x.set(1000i);
+    println!("{}", x.get());
 }