2020-06-03 01:38:34 -04:00
|
|
|
error[E0308]: mismatched types
|
2022-11-25 08:32:52 -05:00
|
|
|
--> tests/compile_fail/object_without_context_scope.rs:6:33
|
|
|
|
|
|
|
|
|
6 | let _object = v8::Object::new(&mut scope);
|
2023-07-11 14:50:03 -04:00
|
|
|
| --------------- ^^^^^^^^^^ expected `&mut HandleScope<'_>`, found `&mut HandleScope<'_, ()>`
|
2022-11-25 08:32:52 -05:00
|
|
|
| |
|
|
|
|
| arguments to this function are incorrect
|
|
|
|
|
|
|
|
|
= note: expected mutable reference `&mut HandleScope<'_>`
|
|
|
|
found mutable reference `&mut HandleScope<'_, ()>`
|
|
|
|
note: associated function defined here
|
|
|
|
--> src/object.rs
|
|
|
|
|
|
|
|
|
| pub fn new<'s>(scope: &mut HandleScope<'s>) -> Local<'s, Object> {
|
|
|
|
| ^^^
|