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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/rust/compile/tuple_mismatch.rs b/gcc/testsuite/rust/compile/tuple_mismatch.rs
index fbeb4b2..828586b 100644
--- a/gcc/testsuite/rust/compile/tuple_mismatch.rs
+++ b/gcc/testsuite/rust/compile/tuple_mismatch.rs
@@ -7,7 +7,7 @@ fn main() {
// The lhs and rhs sizes don't match, but we still resolve 'a' to be bool, we don't
// error out immediately once we notice the size mismatch.
-fn foo() -> i32 { // { dg-error "expected .i32. got .bool." }
+fn foo() -> i32 { // { dg-error "mismatched types, expected .i32. but got .bool." }
let (a, _) = (true, 2, 3); // { dg-error "expected a tuple with 3 elements, found one with 2 elements" }
a
}