]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/lint/lint-owned-heap-memory.rs
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / lint / lint-owned-heap-memory.rs
index 7ef18c28c1ab783311f3e3d7f8c7fca8c54b422d..af47d5c072005b814f25907957830f45cdfe1f33 100644 (file)
@@ -1,12 +1,12 @@
 #![allow(dead_code)]
 #![forbid(box_pointers)]
-#![feature(box_syntax)]
+
 
 struct Foo {
     x: Box<isize> //~ ERROR type uses owned
 }
 
 fn main() {
-    let _x : Foo = Foo {x : box 10};
+    let _x: Foo = Foo { x : Box::new(10) };
     //~^ ERROR type uses owned
 }