From: Pierre-Emmanuel Patry <[email protected]>
gcc/testsuite/ChangeLog:
* rust/compile/generics9.rs: Change expected error message.
* rust/compile/nr2/exclude: Remove test from exclusion list.
Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
---
gcc/testsuite/rust/compile/generics9.rs | 3 ++-
gcc/testsuite/rust/compile/nr2/exclude | 1 -
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/rust/compile/generics9.rs
b/gcc/testsuite/rust/compile/generics9.rs
index 3c787aa7502..56c619833f4 100644
--- a/gcc/testsuite/rust/compile/generics9.rs
+++ b/gcc/testsuite/rust/compile/generics9.rs
@@ -1,5 +1,6 @@
+// { dg-additional-options "-frust-name-resolution-2.0" }
struct Foo<A, B = (A, B)>(A, B);
-// { dg-error "could not resolve type path .B." "" { target *-*-* } .-1 }
+// { dg-error "type parameters with a default cannot use forward declared
identifiers" "" { target *-*-* } .-1 }
fn main() {
let a: Foo<bool>;
diff --git a/gcc/testsuite/rust/compile/nr2/exclude
b/gcc/testsuite/rust/compile/nr2/exclude
index ed1241bcdf6..2c116be1349 100644
--- a/gcc/testsuite/rust/compile/nr2/exclude
+++ b/gcc/testsuite/rust/compile/nr2/exclude
@@ -1,5 +1,4 @@
canonical_paths1.rs
-generics9.rs
issue-3315-2.rs
multiple_bindings1.rs
multiple_bindings2.rs
--
2.49.0