-
Notifications
You must be signed in to change notification settings - Fork 375
Expand file tree
/
Copy pathboxed_local.stderr
More file actions
42 lines (40 loc) · 1.79 KB
/
boxed_local.stderr
File metadata and controls
42 lines (40 loc) · 1.79 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[E0597]: `scope` does not live long enough
--> tests/compile_fail/boxed_local.rs:12:44
|
9 | let _boxed_local = {
| ------------ borrow later stored here
10 | let scope = pin!(v8::HandleScope::new(&mut scope1));
11 | let mut scope = scope.init();
| --------- binding `scope` declared here
12 | let scope3 = pin!(v8::HandleScope::new(&mut scope));
| ^^^^^^^^^^ borrowed value does not live long enough
...
15 | };
| - `scope` dropped here while still borrowed
error[E0716]: temporary value dropped while borrowed
--> tests/compile_fail/boxed_local.rs:12:18
|
9 | let _boxed_local = {
| ------------ borrow later stored here
...
12 | let scope3 = pin!(v8::HandleScope::new(&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 `pin` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0716]: temporary value dropped while borrowed
--> tests/compile_fail/boxed_local.rs:10:17
|
9 | let _boxed_local = {
| ------------ borrow later stored here
10 | let scope = pin!(v8::HandleScope::new(&mut scope1));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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 `pin` (in Nightly builds, run with -Z macro-backtrace for more info)