-
Notifications
You must be signed in to change notification settings - Fork 373
Expand file tree
/
Copy pathtry_catch_exception_lifetime.stderr
More file actions
42 lines (40 loc) · 1.82 KB
/
try_catch_exception_lifetime.stderr
File metadata and controls
42 lines (40 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
error[E0716]: temporary value dropped while borrowed
--> tests/compile_fail/try_catch_exception_lifetime.rs:11:5
|
9 | let _exception = {
| ---------- borrow later stored here
10 | v8::scope!(scope3, &mut scope);
11 | v8::scope!(scope4, scope3);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
...
15 | };
| - temporary value is freed at the end of this statement
|
= note: consider using a `let` binding to create a longer lived value
= note: this error originates in the macro `v8::scope` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0716]: temporary value dropped while borrowed
--> tests/compile_fail/try_catch_exception_lifetime.rs:10:5
|
9 | let _exception = {
| ---------- borrow later stored here
10 | v8::scope!(scope3, &mut scope);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
...
15 | };
| - temporary value is freed at the end of this statement
|
= note: consider using a `let` binding to create a longer lived value
= note: this error originates in the macro `v8::scope` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0716]: temporary value dropped while borrowed
--> tests/compile_fail/try_catch_exception_lifetime.rs:10:5
|
9 | let _exception = {
| ---------- borrow later stored here
10 | v8::scope!(scope3, &mut scope);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
...
15 | };
| - temporary value is freed at the end of this statement
|
= note: consider using a `let` binding to create a longer lived value
= note: this error originates in the macro `v8::scope` (in Nightly builds, run with -Z macro-backtrace for more info)