]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/trait-contravariant-self.rs
fallout: run-pass tests that use box. (many could be ported to `Box::new` instead...
[rust.git] / src / test / run-pass / trait-contravariant-self.rs
index e06e01b9e0512652fceadd0f95989b4c7d90dd96..19d76b889011837999e5d62ba05581d04b331084 100644 (file)
@@ -22,6 +22,9 @@
 // 4. `Bar for Box<Foo> <: Bar for Box<Foo:Send>` because
 //    `Box<Foo:Send> <: Box<Foo>`.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 trait Foo { }
 struct SFoo;
 impl Foo for SFoo { }