mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
14 lines
434 B
Rust
14 lines
434 B
Rust
// run-rustfix
|
|
|
|
fn main() {
|
|
#[allow(dead_code)]
|
|
struct T {
|
|
a: u8,
|
|
b: u8,
|
|
}
|
|
let _ = box (); //~ ERROR `box_syntax` has been removed
|
|
let _ = box 1; //~ ERROR `box_syntax` has been removed
|
|
let _ = box T { a: 12, b: 18 }; //~ ERROR `box_syntax` has been removed
|
|
let _ = box [5; 30]; //~ ERROR `box_syntax` has been removed
|
|
let _: Box<()> = box (); //~ ERROR `box_syntax` has been removed
|
|
}
|