]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Fix inconsistent formatting.
authorKushal Pal <kushalpal109@gmail.com>
Fri, 26 Jan 2024 06:14:12 +0000 (11:44 +0530)
committerArthur Cohen <arthur.cohen@embecosm.com>
Wed, 7 Feb 2024 11:40:24 +0000 (12:40 +0100)
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

index fbac168b9f384b358c5da05c559fe08b6ccdf4d2..89895420a4d88a2f279ac9a35f08a3f540ea0071 100644 (file)
@@ -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
     }
 }