]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-box-expr.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[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 }