]>
Commit | Line | Data |
---|---|---|
32a655c1 SL |
1 | // gate-test-box_syntax |
2 | ||
c1a9b12d SL |
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.) | |
1a4d82fc | 10 | |
c1a9b12d | 11 | fn main() { |
85aaf69f | 12 | let x = box 'c'; //~ ERROR box expression syntax is experimental |
1a4d82fc | 13 | println!("x: {}", x); |
1a4d82fc | 14 | } |