pyo3/tests/ui/pyclass_send.stderr

19 lines
752 B
Plaintext
Raw Normal View History

2021-01-05 22:20:08 +00:00
error[E0277]: `Rc<i32>` cannot be sent between threads safely
--> $DIR/pyclass_send.rs:4:1
|
4 | #[pyclass]
| ^^^^^^^^^^ `Rc<i32>` cannot be sent between threads safely
|
::: $WORKSPACE/src/class/impl_.rs
2021-01-05 22:20:08 +00:00
|
| pub struct ThreadCheckerStub<T: Send>(PhantomData<T>);
| ---- required by this bound in `ThreadCheckerStub`
|
= 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`
--> $DIR/pyclass_send.rs:5:8
|
5 | struct NotThreadSafe {
| ^^^^^^^^^^^^^
2021-01-05 22:20:08 +00:00
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)