Bless output of test borrowck/return-local-binding-from-desugaring.rs for Polonius
This commit is contained in:
parent
b6269f27d9
commit
9f4351d406
1 changed files with 16 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
||||||
|
error[E0597]: `x` does not live long enough
|
||||||
|
--> $DIR/async-borrowck-escaping-closure-error.rs:5:24
|
||||||
|
|
|
||||||
|
LL | Box::new((async || x)())
|
||||||
|
| -------------------^----
|
||||||
|
| | | |
|
||||||
|
| | | borrowed value does not live long enough
|
||||||
|
| | value captured here
|
||||||
|
| borrow later used here
|
||||||
|
LL |
|
||||||
|
LL | }
|
||||||
|
| - `x` dropped here while still borrowed
|
||||||
|
|
||||||
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
For more information about this error, try `rustc --explain E0597`.
|
Loading…
Add table
Add a link
Reference in a new issue