Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- the trait bound `std::sync::Arc<rustpython_vm::pyobject::PyObject<(dyn rustpython_vm::pyobject::PyObjectPayload + 'static)>>: std::convert::From<smallbox::smallbox::SmallBox<dyn for<'r> std::ops::Fn(&'r rustpython_vm::vm::VirtualMachine, rustpython_vm::function::PyFuncArgs) -> std::result::Result<std::sync::Arc<rustpython_vm::pyobject::PyObject<dyn rustpython_vm::pyobject::PyObjectPayload>>, rustpython_vm::pyobject::PyRef<rustpython_vm::exceptions::PyBaseException>> + std::marker::Send + std::marker::Sync, smallbox::space::S1>>` is not satisfied
- --> src/vm.rs:90:25
- |
- 90 | vm.set_attr(&vm.builtins, "open", open_wrapper)?;
- | ^^^^^^^^^^^^ the trait `std::convert::From<smallbox::smallbox::SmallBox<dyn for<'r> std::ops::Fn(&'r rustpython_vm::vm::VirtualMachine, rustpython_vm::function::PyFuncArgs) -> std::result::Result<std::sync::Arc<rustpython_vm::pyobject::PyObject<dyn rustpython_vm::pyobject::PyObjectPayload>>, rustpython_vm::pyobject::PyRef<rustpython_vm::exceptions::PyBaseException>> + std::marker::Send + std::marker::Sync, smallbox::space::S1>>` is not implemented for `std::sync::Arc<rustpython_vm::pyobject::PyObject<(dyn rustpython_vm::pyobject::PyObjectPayload + 'static)>>`
- |
- = help: the following implementations were found:
- <&'a std::sync::Arc<rustpython_vm::pyobject::PyObject<(dyn rustpython_vm::pyobject::PyObjectPayload + 'static)>> as std::convert::From<&'a rustpython_vm::pyobject::PyRef<T>>>
- <std::sync::Arc<T> as std::convert::From<T>>
- <std::sync::Arc<T> as std::convert::From<std::boxed::Box<T>>>
- <std::sync::Arc<[T]> as std::convert::From<&[T]>>
- and 10 others
- = note: required because of the requirements on the impl of `std::convert::Into<std::sync::Arc<rustpython_vm::pyobject::PyObject<(dyn rustpython_vm::pyobject::PyObjectPayload + 'static)>>>` for `smallbox::smallbox::SmallBox<dyn for<'r> std::ops::Fn(&'r rustpython_vm::vm::VirtualMachine, rustpython_vm::function::PyFuncArgs) -> std::result::Result<std::sync::Arc<rustpython_vm::pyobject::PyObject<dyn rustpython_vm::pyobject::PyObjectPayload>>, rustpython_vm::pyobject::PyRef<rustpython_vm::exceptions::PyBaseException>> + std::marker::Send + std::marker::Sync, smallbox::space::S1>`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement