error[E0759]: `self` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement --> $DIR/issue-62097.rs:12:31 | LL | pub async fn run_dummy_fn(&self) { | ^^^^^ | | | this data with an anonymous lifetime `'_`... | ...is captured here... LL | foo(|| self.bar()).await; | --- ...and is required to live as long as `'static` here error: aborting due to previous error For more information about this error, try `rustc --explain E0759`.