]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/deref.rs
move an `assert!` to the right place
[rust.git] / src / test / ui / deref.rs
index cad4ede06a56175050055610cde6d60d52858039..0d4e08ad95476995f98ae0433d3bdbd8df6875c1 100644 (file)
@@ -1,9 +1,7 @@
 // run-pass
 // pretty-expanded FIXME #23616
 
-#![feature(box_syntax)]
-
 pub fn main() {
-    let x: Box<isize> = box 10;
+    let x: Box<isize> = Box::new(10);
     let _y: isize = *x;
 }