]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/newlambdas-ret-infer2.rs
fallout: run-pass tests that use box. (many could be ported to `Box::new` instead...
[rust.git] / src / test / run-pass / newlambdas-ret-infer2.rs
index 43a6ac296e9dc366b3ff3e56180c3c6028689d14..0952bedd6e309a2fbfdcc798db2e30f2657064c7 100644 (file)
@@ -11,6 +11,9 @@
 // Test that the lambda kind is inferred correctly as a return
 // expression
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn unique() -> Box<FnMut()+'static> { box || () }
 
 pub fn main() {