1 error[E0759]: 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 | ^^^^ ---------- ---------- ...and is required to live as long as `'static` here
7 | | this data with an anonymous lifetime `'_`...
8 | ...is captured here...
10 help: to declare that the `impl Trait` captures data from argument `self`, you can add an explicit `'_` lifetime bound
12 LL | async fn f(self: Pin<&Self>) -> impl Clone + '_ { self }
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0759`.