error[E0277]: `Rc` cannot be sent between threads safely --> tests/ui/pyclass_send.rs:4:1 | 4 | #[pyclass] | ^^^^^^^^^^ `Rc` cannot be sent between threads safely | = help: within `NotThreadSafe`, the trait `Send` is not implemented for `Rc`, which is required by `SendablePyClass: pyo3::impl_::pyclass::PyClassThreadChecker` = help: the trait `pyo3::impl_::pyclass::PyClassThreadChecker` is implemented for `SendablePyClass` note: required because it appears within the type `NotThreadSafe` --> tests/ui/pyclass_send.rs:5:8 | 5 | struct NotThreadSafe { | ^^^^^^^^^^^^^ = note: required for `SendablePyClass` to implement `pyo3::impl_::pyclass::PyClassThreadChecker` note: required by a bound in `PyClassImpl::ThreadChecker` --> src/impl_/pyclass.rs | | type ThreadChecker: PyClassThreadChecker; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `PyClassImpl::ThreadChecker` = note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `Rc` cannot be sent between threads safely --> tests/ui/pyclass_send.rs:4:1 | 4 | #[pyclass] | ^^^^^^^^^^ `Rc` cannot be sent between threads safely | = help: within `NotThreadSafe`, the trait `Send` is not implemented for `Rc`, which is required by `NotThreadSafe: Send` note: required because it appears within the type `NotThreadSafe` --> tests/ui/pyclass_send.rs:5:8 | 5 | struct NotThreadSafe { | ^^^^^^^^^^^^^ note: required by a bound in `SendablePyClass` --> src/impl_/pyclass.rs | | pub struct SendablePyClass(PhantomData); | ^^^^ required by this bound in `SendablePyClass` = note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)