mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-12-02 17:01:55 -05:00
11 lines
288 B
Text
11 lines
288 B
Text
|
error[E0597]: `hs2` does not live long enough
|
||
|
--> $DIR/handle_scope_lifetime_4.rs:11:5
|
||
|
|
|
||
|
11 | hs2.enter()
|
||
|
| ^^^--------
|
||
|
| |
|
||
|
| borrowed value does not live long enough
|
||
|
| borrow later used here
|
||
|
12 | };
|
||
|
| - `hs2` dropped here while still borrowed
|