]> git.proxmox.com Git - rustc.git/blob - tests/ui/feature-gates/feature-gate-box_syntax.rs
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / 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 }