rust/tests/ui/unpretty/box.rs

10 lines
152 B
Rust
Raw Normal View History

// compile-flags: -Zunpretty=hir
// check-pass
#![feature(stmt_expr_attributes, rustc_attrs)]
fn main() {
let _ = #[rustc_box]
Box::new(1);
}