about summary refs log tree commit diff
path: root/src/test/ui/async-await/issues/issue-62097.stderr
blob: e23277543c66f3b14e5ba4cc5a40b7dd1826d28a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 `'_`...
LL |         foo(|| self.bar()).await;
   |         --- ...is used and required to live as long as `'static` here
   |
note: `'static` lifetime requirement introduced by this bound
  --> $DIR/issue-62097.rs:4:19
   |
LL |     F: FnOnce() + 'static
   |                   ^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0759`.