mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-12-27 01:29:19 -05:00
15 lines
647 B
Text
15 lines
647 B
Text
error[E0308]: mismatched types
|
|
--> tests/compile_fail/object_without_context_scope.rs:6:33
|
|
|
|
|
6 | let _object = v8::Object::new(&mut scope);
|
|
| --------------- ^^^^^^^^^^ expected `&mut HandleScope<'_>`, found `&mut HandleScope<'_, ()>`
|
|
| |
|
|
| 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> {
|
|
| ^^^
|