]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-box_syntax.rs
Rollup merge of #94449 - GuillaumeGomez:explanation-e0726, r=Urgau
[rust.git] / src / test / ui / feature-gates / feature-gate-box_syntax.rs
1 // Test that the use of the box syntax is gated by `box_syntax` feature gate.
2
3 fn main() {
4     let x = box 3;
5     //~^ ERROR box expression syntax is experimental; you can call `Box::new` instead
6 }