rust/tests/ui/unpretty/box.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
154 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);
}