0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-30 11:16:46 -05:00
denoland-rusty-v8/tests/compile_fail/boxed_local.stderr

12 lines
411 B
Text
Raw Normal View History

error[E0597]: `hs` does not live long enough
--> $DIR/boxed_local.rs:9:14
|
7 | let _boxed_local = {
| ------------ borrow later stored here
8 | let mut hs = v8::HandleScope::new(&mut isolate);
9 | let hs = hs.enter();
| ^^ borrowed value does not live long enough
10 | Box::new(v8::Integer::new(hs, 123))
11 | };
| - `hs` dropped here while still borrowed