]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-62097.stderr
Auto merge of #83152 - guswynn:jemallocator_part2, r=Mark-Simulacrum
[rust.git] / src / test / ui / async-await / issues / issue-62097.stderr
1 error[E0759]: `self` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement
2   --> $DIR/issue-62097.rs:12:31
3    |
4 LL |     pub async fn run_dummy_fn(&self) {
5    |                               ^^^^^
6    |                               |
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
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0759`.