[COMMITTED 095/101] gccrs: Test: fix missing lifetime in a test

arthur.cohen@embecosm.com arthur.cohen@embecosm.com
Tue Jan 30 12:07:51 GMT 2024


From: Jakub Dupak <dev@jakubdupak.com>

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/rust/compile/torture/utf8_identifiers.rs b/gcc/testsuite/rust/compile/torture/utf8_identifiers.rs
index eeee01c95cf..696fcc0a3d8 100644
--- a/gcc/testsuite/rust/compile/torture/utf8_identifiers.rs
+++ b/gcc/testsuite/rust/compile/torture/utf8_identifiers.rs
@@ -1,7 +1,7 @@
 #[lang = "sized"]
 pub trait Sized {}
 
-pub fn f() {
+pub fn f<'かに>() {
     let crab = ();
 
     let Κάβουρας = 0.001;
-- 
2.42.1



More information about the Gcc-rust mailing list