1 error: cannot infer an appropriate lifetime
2 --> $DIR/arbitrary_self_types_pin_lifetime_impl_trait-async.rs:8:16
4 LL | async fn f(self: Pin<&Self>) -> impl Clone { self }
5 | ^^^^ ---------- this return type evaluates to the `'static` lifetime...
7 | ...but this borrow...
9 note: ...can't outlive the lifetime '_ as defined on the method body at 8:26
10 --> $DIR/arbitrary_self_types_pin_lifetime_impl_trait-async.rs:8:26
12 LL | async fn f(self: Pin<&Self>) -> impl Clone { self }
14 help: you can add a constraint to the return type to make it last less than `'static` and match the lifetime '_ as defined on the method body at 8:26
16 LL | async fn f(self: Pin<&Self>) -> impl Clone + '_ { self }
19 error: aborting due to previous error