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