mirror of
https://github.com/denoland/rusty_v8.git
synced 2025-03-10 05:56:52 -04:00
12 lines
395 B
Text
12 lines
395 B
Text
![]() |
error[E0597]: `hs` does not live long enough
|
||
|
--> $DIR/boxed_local.rs:11:14
|
||
|
|
|
||
|
9 | let _boxed = {
|
||
|
| ------ borrow later stored here
|
||
|
10 | let mut hs = v8::HandleScope::new(root_hs);
|
||
|
11 | let hs = hs.enter();
|
||
|
| ^^ borrowed value does not live long enough
|
||
|
12 | Box::new(v8::Integer::new(hs, 123))
|
||
|
13 | };
|
||
|
| - `hs` dropped here while still borrowed
|