mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-12-26 09:13:46 -05:00
11 lines
427 B
Text
11 lines
427 B
Text
error[E0597]: `try_catch` does not live long enough
|
|
--> $DIR/try_catch_message_lifetime.rs:11:14
|
|
|
|
|
9 | let _message = {
|
|
| -------- borrow later stored here
|
|
10 | let mut try_catch = v8::TryCatch::new(hs);
|
|
11 | let tc = try_catch.enter();
|
|
| ^^^^^^^^^ borrowed value does not live long enough
|
|
12 | tc.message().unwrap()
|
|
13 | };
|
|
| - `try_catch` dropped here while still borrowed
|