diff options
Diffstat (limited to 'gcc/testsuite/rust/compile/box_syntax.rs')
-rw-r--r-- | gcc/testsuite/rust/compile/box_syntax.rs | 6 |
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; +} |