]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/kindck/kindck-impl-type-params-2.rs
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / kindck / kindck-impl-type-params-2.rs
index c08f776dbf20a9bb97f7230e4f2e536c0faa25c8..8b0771985dc3fe53cc50dadb2911156ff65cc307 100644 (file)
@@ -1,15 +1,15 @@
-#![feature(box_syntax)]
-
 trait Foo {
 }
 
+
+
 impl<T:Copy> Foo for T {
 }
 
 fn take_param<T:Foo>(foo: &T) { }
 
 fn main() {
-    let x: Box<_> = box 3;
+    let x: Box<_> = Box::new(3);
     take_param(&x);
     //~^ ERROR the trait bound `Box<{integer}>: Foo` is not satisfied
 }