summaryrefslogtreecommitdiffstats
path: root/tests/ui/unpretty/box.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/unpretty/box.rs')
-rw-r--r--tests/ui/unpretty/box.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/unpretty/box.rs b/tests/ui/unpretty/box.rs
new file mode 100644
index 000000000..81f5c88d7
--- /dev/null
+++ b/tests/ui/unpretty/box.rs
@@ -0,0 +1,9 @@
+// compile-flags: -Zunpretty=hir
+// check-pass
+
+#![feature(stmt_expr_attributes, rustc_attrs)]
+
+fn main() {
+ let _ = #[rustc_box]
+ Box::new(1);
+}