https://gcc.gnu.org/g:16936de7c1d020e6b390d8a768dab08deb50036a

commit 16936de7c1d020e6b390d8a768dab08deb50036a
Author: Kushal Pal <[email protected]>
Date:   Fri Jan 26 11:44:12 2024 +0530

    Fix inconsistent formatting.
    
    gcc/testsuite/ChangeLog:
    
            * rust/compile/issue-2040.rs:
            Enclose 'const' in single quotes.
    
    Signed-off-by: Kushal Pal <[email protected]>

Diff:
---
 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 fbac168b9f38..89895420a4d8 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
     }
 }

Reply via email to