Add feature-gates for desugaring-based box and placement-in.

update test/compile-fail/feature-gate-box-expr.rs to reflect new feature gates.

Part of what lands with Issue 22181.
This commit is contained in:
Felix S. Klock II 2015-02-12 11:30:16 +01:00
parent d79bbbc4ef
commit b325e4f28e
5 changed files with 70 additions and 2 deletions

View file

@ -17,6 +17,9 @@ fn main() {
let x = box () 'c'; //~ ERROR box expression syntax is experimental
println!("x: {}", x);
let x = box (HEAP) 'c'; //~ ERROR box expression syntax is experimental
let x = box (HEAP) 'c'; //~ ERROR placement-in expression syntax is experimental
println!("x: {}", x);
let x = in HEAP { 'c' }; //~ ERROR placement-in expression syntax is experimental
println!("x: {}", x);
}