]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/drop-struct-as-object.rs
fallout: run-pass tests that use box. (many could be ported to `Box::new` instead...
[rust.git] / src / test / run-pass / drop-struct-as-object.rs
index 6d7715ed9a5a039012a1428c774236ade4bed296..7a3b6df539f142b3efed8ff676fba9d3b93cfbae 100644 (file)
@@ -11,6 +11,9 @@
 // Test that destructor on a struct runs successfully after the struct
 // is boxed and converted to an object.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 static mut value: uint = 0;
 
 struct Cat {