2017-01-10 19:25:44 -06:00
|
|
|
// gate-test-box_syntax
|
|
|
|
|
2015-07-21 07:31:07 -05:00
|
|
|
// 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.)
|
2015-01-07 16:03:22 -06:00
|
|
|
|
2015-07-21 07:31:07 -05:00
|
|
|
fn main() {
|
2015-02-11 07:13:33 -06:00
|
|
|
let x = box 'c'; //~ ERROR box expression syntax is experimental
|
2015-01-07 16:03:22 -06:00
|
|
|
println!("x: {}", x);
|
|
|
|
}
|