1
Fork 0

Bless output of test borrowck/return-local-binding-from-desugaring.rs for Polonius

This commit is contained in:
lqd 2019-09-17 19:28:49 +02:00
parent b6269f27d9
commit 9f4351d406

View file

@ -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`.