aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/box_syntax.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/rust/compile/box_syntax.rs')
-rw-r--r--gcc/testsuite/rust/compile/box_syntax.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/box_syntax.rs b/gcc/testsuite/rust/compile/box_syntax.rs
new file mode 100644
index 0000000..c63284b
--- /dev/null
+++ b/gcc/testsuite/rust/compile/box_syntax.rs
@@ -0,0 +1,6 @@
+// { dg-options "-fsyntax-only" }
+#![feature(box_syntax)]
+
+fn main() {
+ let x: Box<_> = box 1;
+}