File tree 2 files changed +35
-0
lines changed
2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,17 @@ error[E0277]: the trait bound `PyDict: PyClass` is not satisfied
7
7
= help: the trait `PyClass` is implemented for `TestClass`
8
8
= note: required for `PyDict` to implement `PyClassBaseType`
9
9
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
10
+
11
+ error[E0277]: the trait bound `PyDict: PyClass` is not satisfied
12
+ --> tests/ui/abi3_nativetype_inheritance.rs:5:19
13
+ |
14
+ 5 | #[pyclass(extends=PyDict)]
15
+ | ^^^^^^ the trait `PyClass` is not implemented for `PyDict`
16
+ |
17
+ = help: the trait `PyClass` is implemented for `TestClass`
18
+ = note: required for `PyDict` to implement `PyClassBaseType`
19
+ note: required by a bound in `PyClassImpl::BaseType`
20
+ --> src/impl_/pyclass.rs
21
+ |
22
+ | type BaseType: PyTypeInfo + PyClassBaseType;
23
+ | ^^^^^^^^^^^^^^^ required by this bound in `PyClassImpl::BaseType`
Original file line number Diff line number Diff line change @@ -16,3 +16,24 @@ note: required by a bound in `SendablePyClass`
16
16
| pub struct SendablePyClass<T: Send>(PhantomData<T>);
17
17
| ^^^^ required by this bound in `SendablePyClass`
18
18
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
19
+
20
+ error[E0277]: `Rc<i32>` cannot be sent between threads safely
21
+ --> tests/ui/pyclass_send.rs:4:1
22
+ |
23
+ 4 | #[pyclass]
24
+ | ^^^^^^^^^^ `Rc<i32>` cannot be sent between threads safely
25
+ |
26
+ = help: within `NotThreadSafe`, the trait `Send` is not implemented for `Rc<i32>`
27
+ = help: the trait `pyo3::impl_::pyclass::PyClassThreadChecker<T>` is implemented for `SendablePyClass<T>`
28
+ note: required because it appears within the type `NotThreadSafe`
29
+ --> tests/ui/pyclass_send.rs:5:8
30
+ |
31
+ 5 | struct NotThreadSafe {
32
+ | ^^^^^^^^^^^^^
33
+ = note: required for `SendablePyClass<NotThreadSafe>` to implement `pyo3::impl_::pyclass::PyClassThreadChecker<NotThreadSafe>`
34
+ note: required by a bound in `PyClassImpl::ThreadChecker`
35
+ --> src/impl_/pyclass.rs
36
+ |
37
+ | type ThreadChecker: PyClassThreadChecker<Self>;
38
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `PyClassImpl::ThreadChecker`
39
+ = note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
You can’t perform that action at this time.
0 commit comments