]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/trailing-plus-in-bounds.rs
Rollup merge of #97420 - WaffleLapkin:no_oxford_casts_qqq, r=Mark-Simulacrum
[rust.git] / src / test / ui / parser / trailing-plus-in-bounds.rs
index 33c30d731087795996a48735fd23b3dfcb18c113..400649bcf752f0938e4fddacf747991df4101d51 100644 (file)
@@ -1,10 +1,9 @@
-// build-pass (FIXME(62277): could be check-pass?)
+// check-pass
 
-#![feature(box_syntax)]
 #![allow(bare_trait_objects)]
 
 use std::fmt::Debug;
 
 fn main() {
-    let x: Box<Debug+> = box 3 as Box<Debug+>; // Trailing `+` is OK
+    let x: Box<Debug+> = Box::new(3) as Box<Debug+>; // Trailing `+` is OK
 }