Skip to content

Commit 9f4351d

Browse files
committed
Bless output of test borrowck/return-local-binding-from-desugaring.rs for Polonius
1 parent b6269f2 commit 9f4351d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
error[E0597]: `x` does not live long enough
2+
--> $DIR/async-borrowck-escaping-closure-error.rs:5:24
3+
|
4+
LL | Box::new((async || x)())
5+
| -------------------^----
6+
| | | |
7+
| | | borrowed value does not live long enough
8+
| | value captured here
9+
| borrow later used here
10+
LL |
11+
LL | }
12+
| - `x` dropped here while still borrowed
13+
14+
error: aborting due to previous error
15+
16+
For more information about this error, try `rustc --explain E0597`.

0 commit comments

Comments
 (0)