]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-box-expr.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-box-expr.rs
1 // gate-test-box_syntax
2
3 // Check that `box EXPR` is feature-gated.
4 //
5 // See also feature-gate-placement-expr.rs
6 //
7 // (Note that the two tests are separated since the checks appear to
8 // be performed at distinct phases, with an abort_if_errors call
9 // separating them.)
10
11 fn main() {
12     let x = box 'c'; //~ ERROR box expression syntax is experimental
13     println!("x: {}", x);
14 }