2021-01-05 22:20:08 +00:00
|
|
|
error[E0277]: `Rc<i32>` cannot be sent between threads safely
|
2021-10-10 15:22:29 +00:00
|
|
|
--> tests/ui/pyclass_send.rs:4:1
|
2021-01-05 22:20:08 +00:00
|
|
|
|
|
|
|
|
4 | #[pyclass]
|
|
|
|
| ^^^^^^^^^^ `Rc<i32>` cannot be sent between threads safely
|
|
|
|
|
|
|
|
|
= help: within `NotThreadSafe`, the trait `Send` is not implemented for `Rc<i32>`
|
2021-06-19 14:11:03 +00:00
|
|
|
note: required because it appears within the type `NotThreadSafe`
|
2021-10-10 15:22:29 +00:00
|
|
|
--> tests/ui/pyclass_send.rs:5:8
|
2021-06-19 14:11:03 +00:00
|
|
|
|
|
|
|
|
5 | struct NotThreadSafe {
|
|
|
|
| ^^^^^^^^^^^^^
|
2021-10-22 03:26:25 +00:00
|
|
|
note: required by a bound in `ThreadCheckerStub`
|
2021-10-18 07:30:59 +00:00
|
|
|
--> src/class/impl_.rs:710:33
|
2021-10-22 03:26:25 +00:00
|
|
|
|
|
2021-10-18 07:30:59 +00:00
|
|
|
710 | pub struct ThreadCheckerStub<T: Send>(PhantomData<T>);
|
2021-10-22 03:26:25 +00:00
|
|
|
| ^^^^ required by this bound in `ThreadCheckerStub`
|
2021-07-30 22:30:56 +00:00
|
|
|
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
|