rust/tests/ui/underscore-lifetime/in-binder.stderr
xizheyin e7c3703c53
Suggest use another lifetime specifier instead of underscore lifetime
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-07-01 19:58:27 +08:00

52 lines
1.3 KiB
Plaintext

error[E0637]: `'_` cannot be used here
--> $DIR/in-binder.rs:9:6
|
LL | impl<'_> IceCube<'_> {}
| ^^ `'_` is a reserved lifetime name
|
= help: use another lifetime specifier
error[E0637]: `'_` cannot be used here
--> $DIR/in-binder.rs:12:15
|
LL | struct Struct<'_> {
| ^^ `'_` is a reserved lifetime name
|
= help: use another lifetime specifier
error[E0637]: `'_` cannot be used here
--> $DIR/in-binder.rs:17:11
|
LL | enum Enum<'_> {
| ^^ `'_` is a reserved lifetime name
|
= help: use another lifetime specifier
error[E0637]: `'_` cannot be used here
--> $DIR/in-binder.rs:22:13
|
LL | union Union<'_> {
| ^^ `'_` is a reserved lifetime name
|
= help: use another lifetime specifier
error[E0637]: `'_` cannot be used here
--> $DIR/in-binder.rs:27:13
|
LL | trait Trait<'_> {
| ^^ `'_` is a reserved lifetime name
|
= help: use another lifetime specifier
error[E0637]: `'_` cannot be used here
--> $DIR/in-binder.rs:31:8
|
LL | fn foo<'_>() {
| ^^ `'_` is a reserved lifetime name
|
= help: use another lifetime specifier
error: aborting due to 6 previous errors
For more information about this error, try `rustc --explain E0637`.