0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-28 10:09:25 -05:00
denoland-rusty-v8/tests/compile_fail/handle_scope_escape_lifetime.stderr

11 lines
374 B
Text

error[E0597]: `hs2` does not live long enough
--> $DIR/handle_scope_escape_lifetime.rs:11:15
|
9 | let _local = {
| ------ borrow later stored here
10 | let mut hs2 = v8::HandleScope::new(hs1);
11 | let hs2 = hs2.enter();
| ^^^ borrowed value does not live long enough
...
18 | };
| - `hs2` dropped here while still borrowed