diff options
| author | xizheyin <xizheyin@smail.nju.edu.cn> | 2025-06-30 16:37:38 +0800 |
|---|---|---|
| committer | xizheyin <xizheyin@smail.nju.edu.cn> | 2025-07-01 19:58:27 +0800 |
| commit | e7c3703c53464842bd050e0921edd2a756b86ff3 (patch) | |
| tree | aaf943dbd8d2681329a8a3b69960d30932e80c1a /tests/ui/error-codes | |
| parent | f19142044f270760ce0ebc03b2c3a44217d8703d (diff) | |
| download | rust-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.stderr | 2 |
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 |
