From: Kushal Pal <kushalpal...@gmail.com>

gcc/testsuite/ChangeLog:

        * rust/compile/issue-2040.rs:
        Enclose 'const' in single quotes.

Signed-off-by: Kushal Pal <kushalpal...@gmail.com>
---
 gcc/testsuite/rust/compile/issue-2040.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/rust/compile/issue-2040.rs 
b/gcc/testsuite/rust/compile/issue-2040.rs
index fbac168b9f3..89895420a4d 100644
--- a/gcc/testsuite/rust/compile/issue-2040.rs
+++ b/gcc/testsuite/rust/compile/issue-2040.rs
@@ -4,7 +4,7 @@ trait Foo {
 
 impl Foo for u32 {
     const fn f() -> u32 {
-        // { dg-error "functions in traits cannot be declared const" "" { 
target *-*-* } .-1 }
+        // { dg-error "functions in traits cannot be declared .const." "" { 
target *-*-* } .-1 }
         22
     }
 }
-- 
2.42.1

Reply via email to