1 error[E0700]: hidden type for `impl Clone` captures lifetime that does not appear in bounds
2 --> $DIR/arbitrary_self_types_pin_lifetime_impl_trait-async.rs:8:48
4 LL | async fn f(self: Pin<&Self>) -> impl Clone { self }
7 | hidden type `Pin<&Foo>` captures the anonymous lifetime defined here
9 help: to declare that `impl Clone` captures `'_`, you can add an explicit `'_` lifetime bound
11 LL | async fn f(self: Pin<&Self>) -> impl Clone + '_ { self }
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0700`.