]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Test: fix missing lifetime in a test
authorJakub Dupak <dev@jakubdupak.com>
Tue, 9 Jan 2024 14:43:01 +0000 (15:43 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 30 Jan 2024 11:36:52 +0000 (12:36 +0100)
This test did not compile with rustc.

gcc/testsuite/ChangeLog:

* rust/compile/torture/utf8_identifiers.rs: add mising lifetime

Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
gcc/testsuite/rust/compile/torture/utf8_identifiers.rs

index eeee01c95cf18597508e0b90de8473b788272e78..696fcc0a3d8312f5eb32cf2002037f20cfb1769c 100644 (file)
@@ -1,7 +1,7 @@
 #[lang = "sized"]
 pub trait Sized {}
 
-pub fn f() {
+pub fn f<'かに>() {
     let crab = ();
 
     let Κάβουρας = 0.001;