2019-04-29 17:45:22 -07:00
|
|
|
error[E0726]: implicit elided lifetime not allowed here
|
2019-08-02 03:48:43 +02:00
|
|
|
--> $DIR/async-fn-path-elision.rs:5:20
|
2019-04-29 17:45:22 -07:00
|
|
|
|
|
|
|
|
LL | async fn error(lt: HasLifetime) {
|
2022-03-10 23:12:35 +01:00
|
|
|
| ^^^^^^^^^^^ expected lifetime parameter
|
2021-07-19 23:44:35 -04:00
|
|
|
|
|
|
|
|
= note: assuming a `'static` lifetime...
|
2022-03-10 23:12:35 +01:00
|
|
|
help: indicate the anonymous lifetime
|
|
|
|
|
|
|
|
|
LL | async fn error(lt: HasLifetime<'_>) {
|
|
|
|
| ++++
|
2019-04-29 17:45:22 -07:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2022-02-28 14:37:27 +01:00
|
|
|
For more information about this error, try `rustc --explain E0726`.
|