diff options
Diffstat (limited to 'gcc/testsuite/rust/compile/tuple_struct2.rs')
-rw-r--r-- | gcc/testsuite/rust/compile/tuple_struct2.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/tuple_struct2.rs b/gcc/testsuite/rust/compile/tuple_struct2.rs new file mode 100644 index 0000000..1fc1896 --- /dev/null +++ b/gcc/testsuite/rust/compile/tuple_struct2.rs @@ -0,0 +1,5 @@ +struct Bar(i32, i32, bool); + +fn main() { + let a = Bar(1, 2); // { dg-error "unexpected number of arguments 2 expected 3" } +} |