about summary refs log tree commit diff
path: root/src/test/ui/async-await/issues/issue-62097.stderr
blob: 94afccc06a9e7c1dd1d578d4f05233faefe29a06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error: cannot infer an appropriate lifetime
  --> $DIR/issue-62097.rs:12:31
   |
LL |     pub async fn run_dummy_fn(&self) {
   |                               ^^^^^ ...but this borrow...
LL |         foo(|| self.bar()).await;
   |         --- this return type evaluates to the `'static` lifetime...
   |
note: ...can't outlive the lifetime `'_` as defined on the method body at 12:31
  --> $DIR/issue-62097.rs:12:31
   |
LL |     pub async fn run_dummy_fn(&self) {
   |                               ^

error: aborting due to previous error