]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/list.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / list.rs
index c42f610bcd1c3f0017af8f09964d3cac96d388b3..e55c1b36f3e24b357c90ca70b82e6c0bafe8822c 100644 (file)
@@ -8,10 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(managed_boxes)]
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
-use std::gc::{Gc, GC};
+enum list { cons(int, Box<list>), nil, }
 
-enum list { cons(int, Gc<list>), nil, }
-
-pub fn main() { cons(10, box(GC) cons(11, box(GC) cons(12, box(GC) nil))); }
+pub fn main() { list::cons(10, box list::cons(11, box list::cons(12, box list::nil))); }