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