aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/tuple_mismatch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/rust/compile/tuple_mismatch.rs')
-rw-r--r--gcc/testsuite/rust/compile/tuple_mismatch.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/tuple_mismatch.rs b/gcc/testsuite/rust/compile/tuple_mismatch.rs
index 828586b..1ff358b 100644
--- a/gcc/testsuite/rust/compile/tuple_mismatch.rs
+++ b/gcc/testsuite/rust/compile/tuple_mismatch.rs
@@ -3,6 +3,7 @@ fn main() {
let (_,) = (1, 2); // { dg-error "expected a tuple with 2 elements, found one with 1 element" }
let (_, _) = (1, 2, 3); // { dg-error "expected a tuple with 3 elements, found one with 2 elements" }
let (_, _) = (1,); // { dg-error "expected a tuple with 1 element, found one with 2 elements" }
+ let (_, .., _) = (1,); // { dg-error "expected a tuple with 1 element, found one with 2 elements" }
}
// The lhs and rhs sizes don't match, but we still resolve 'a' to be bool, we don't