fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
543 B16 linesraw
1error: cannot infer an appropriate lifetime
2  --> $DIR/issue-62097.rs:12:31
3   |
4LL |     pub async fn run_dummy_fn(&self) {
5   |                               ^^^^^ ...but this borrow...
6LL |         foo(|| self.bar()).await;
7   |         --- this return type evaluates to the `'static` lifetime...
8   |
9note: ...can't outlive the lifetime `'_` as defined on the method body at 12:31
10  --> $DIR/issue-62097.rs:12:31
11   |
12LL |     pub async fn run_dummy_fn(&self) {
13   |                               ^
14
15error: aborting due to previous error
16