diff mbox series

[COMMITTED,22/25] gccrs: Fix inconsistent formatting.

Message ID 20240207114419.1100894-23-arthur.cohen@embecosm.com
State New
Headers show
Series [COMMITTED,01/25] gccrs: Parse normal functions with `self` parameter correctly | expand

Commit Message

Arthur Cohen Feb. 7, 2024, 11:44 a.m. UTC
From: Kushal Pal <kushalpal109@gmail.com>

gcc/testsuite/ChangeLog:

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

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

Patch

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
     }
 }