SHARE
TWEET

Untitled

a guest May 18th, 2020 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 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
  2.  --> src/vm.rs:90:25
  3.   |
  4. 90 |             vm.set_attr(&vm.builtins, "open", open_wrapper)?;
  5.   |                         ^^^^^^^^^^^^ 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)>>`
  6.    |
  7.    = help: the following implementations were found:
  8.              <&'a std::sync::Arc<rustpython_vm::pyobject::PyObject<(dyn rustpython_vm::pyobject::PyObjectPayload + 'static)>> as std::convert::From<&'a rustpython_vm::pyobject::PyRef<T>>>
  9.             <std::sync::Arc<T> as std::convert::From<T>>
  10.             <std::sync::Arc<T> as std::convert::From<std::boxed::Box<T>>>
  11.             <std::sync::Arc<[T]> as std::convert::From<&[T]>>
  12.           and 10 others
  13.   = 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>`
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top