summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-box-expr.rs
blob: 870253d2f052e3455c508631b552d48c625e2bea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// gate-test-box_syntax

// Check that `box EXPR` is feature-gated.
//
// See also feature-gate-placement-expr.rs
//
// (Note that the two tests are separated since the checks appear to
// be performed at distinct phases, with an abort_if_errors call
// separating them.)

fn main() {
    let x = box 'c'; //~ ERROR box expression syntax is experimental
    println!("x: {}", x);
}