]> git.proxmox.com Git - rustc.git/blame - tests/ui/feature-gates/feature-gate-box-expr.rs
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / feature-gates / feature-gate-box-expr.rs
CommitLineData
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 11fn main() {
85aaf69f 12 let x = box 'c'; //~ ERROR box expression syntax is experimental
1a4d82fc 13 println!("x: {}", x);
1a4d82fc 14}