2023-02-27 07:22:43 -06:00
|
|
|
// run-rustfix
|
|
|
|
|
2023-02-27 07:17:29 -06:00
|
|
|
fn main() {
|
2023-02-27 07:22:43 -06:00
|
|
|
#[allow(dead_code)]
|
2023-02-27 07:17:29 -06:00
|
|
|
struct T {
|
|
|
|
a: u8,
|
|
|
|
b: u8,
|
|
|
|
}
|
2023-02-27 07:22:43 -06:00
|
|
|
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
|
2023-02-27 07:17:29 -06:00
|
|
|
}
|