about summary refs log tree commit diff
path: root/tests/ui/error-codes
diff options
context:
space:
mode:
authorxizheyin <xizheyin@smail.nju.edu.cn>2025-06-30 16:37:38 +0800
committerxizheyin <xizheyin@smail.nju.edu.cn>2025-07-01 19:58:27 +0800
commite7c3703c53464842bd050e0921edd2a756b86ff3 (patch)
treeaaf943dbd8d2681329a8a3b69960d30932e80c1a /tests/ui/error-codes
parentf19142044f270760ce0ebc03b2c3a44217d8703d (diff)
downloadrust-e7c3703c53464842bd050e0921edd2a756b86ff3.tar.gz
rust-e7c3703c53464842bd050e0921edd2a756b86ff3.zip
Suggest use another lifetime specifier instead of underscore lifetime
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
Diffstat (limited to 'tests/ui/error-codes')
-rw-r--r--tests/ui/error-codes/E0637.stderr2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0637.stderr b/tests/ui/error-codes/E0637.stderr
index 95a5a58ab85..88c08cb94ba 100644
--- a/tests/ui/error-codes/E0637.stderr
+++ b/tests/ui/error-codes/E0637.stderr
@@ -3,6 +3,8 @@ error[E0637]: `'_` cannot be used here
    |
 LL | fn underscore_lifetime<'_>(str1: &'_ str, str2: &'_ str) -> &'_ str {
    |                        ^^ `'_` is a reserved lifetime name
+   |
+   = help: use another lifetime specifier
 
 error[E0106]: missing lifetime specifier
   --> $DIR/E0637.rs:1:62