fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
509 B16 linesraw
1error[E0597]: `x` does not live long enough
2  --> $DIR/async-borrowck-escaping-closure-error.rs:5:24
3   |
4LL |     Box::new((async || x)())
5   |     -------------------^----
6   |     |         |        |
7   |     |         |        borrowed value does not live long enough
8   |     |         value captured here
9   |     borrow later used here
10LL |
11LL | }
12   | - `x` dropped here while still borrowed
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0597`.