mirror of
https://github.com/denoland/rusty_v8.git
synced 2025-02-02 04:37:35 -05:00
11 lines
395 B
Text
11 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
|