summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/feature-gate-box_syntax.rs
blob: 778660cc0b54991d1b456e33f18095a108f091d3 (plain)
1
2
3
4
5
6
// Test that the use of the box syntax is gated by `box_syntax` feature gate.

fn main() {
    let x = box 3;
    //~^ ERROR box expression syntax is experimental; you can call `Box::new` instead
}