mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
7 lines
198 B
Rust
7 lines
198 B
Rust
// Test that the use of the box syntax is gated by `box_syntax` feature gate.
|
|
|
|
fn main() {
|
|
let x = box 3;
|
|
//~^ ERROR box expression syntax is experimental; you can call `Box::new` instead
|
|
}
|