The issue was used for both box syntax as well as placement new. It got closed due to placement new being unapproved. So a new one got created for box syntax, yet neither the unstable book nor feature_gate.rs got updated. We are doing this now.
11 lines
437 B
Text
11 lines
437 B
Text
error[E0658]: box expression syntax is experimental; you can call `Box::new` instead. (see issue #49733)
|
|
--> $DIR/feature-gate-box-expr.rs:22:13
|
|
|
|
|
LL | let x = box 'c'; //~ ERROR box expression syntax is experimental
|
|
| ^^^^^^^
|
|
|
|
|
= help: add #![feature(box_syntax)] to the crate attributes to enable
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|