]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/occurs-check.rs
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / occurs-check.rs
index 5f2c2362d24cd81c9230d47ae274eff901133b9d..aec52d839766ad3e42ec040a30a6cf4e0572bae7 100644 (file)
@@ -1,8 +1,8 @@
-#![feature(box_syntax)]
-
 fn main() {
+
     let f;
-    f = box f;
+
+    f = Box::new(f);
     //~^ ERROR mismatched types
     //~| cyclic type of infinite size
 }