mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-12-11 18:17:52 -05:00
11 lines
393 B
Text
11 lines
393 B
Text
error[E0597]: `try_catch` does not live long enough
|
|
--> $DIR/try_catch_lifetimes.rs:9:14
|
|
|
|
|
7 | let _leaked = {
|
|
| ------- borrow later stored here
|
|
8 | let mut try_catch = v8::TryCatch::new(scope);
|
|
9 | let tc = try_catch.enter();
|
|
| ^^^^^^^^^ borrowed value does not live long enough
|
|
...
|
|
14 | };
|
|
| - `try_catch` dropped here while still borrowed
|