1 error[E0759]: `self` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement
2 --> $DIR/arbitrary_self_types_pin_lifetime_impl_trait.rs:6:44
4 LL | fn f(self: Pin<&Self>) -> impl Clone { self }
5 | ---------- ^^^^ ...is captured here...
7 | this data with an anonymous lifetime `'_`...
9 note: ...and is required to live as long as `'static` here
10 --> $DIR/arbitrary_self_types_pin_lifetime_impl_trait.rs:6:31
12 LL | fn f(self: Pin<&Self>) -> impl Clone { self }
14 help: to declare that the `impl Trait` captures data from argument `self`, you can add an explicit `'_` lifetime bound
16 LL | fn f(self: Pin<&Self>) -> impl Clone + '_ { self }
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0759`.