]> 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 6803c31f0973b649ff012ba2a3491b03b15f3ac2..e55c1b36f3e24b357c90ca70b82e6c0bafe8822c 100644 (file)
@@ -8,8 +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)]
 
-enum list { cons(int, @list), nil, }
+enum list { cons(int, Box<list>), nil, }
 
-pub fn main() { cons(10, @cons(11, @cons(12, @nil))); }
+pub fn main() { list::cons(10, box list::cons(11, box list::cons(12, box list::nil))); }