2020-08-28 02:29:38 +00:00
|
|
|
error[E0277]: the trait bound `i32: std::convert::From<&pyo3::PyCell<MyClass>>` is not satisfied
|
2020-06-23 14:19:20 +00:00
|
|
|
--> $DIR/invalid_pymethod_receiver.rs:8:43
|
|
|
|
|
|
|
|
|
8 | fn method_with_invalid_self_type(slf: i32, py: Python, index: u32) {}
|
2020-08-28 02:29:38 +00:00
|
|
|
| ^^^ the trait `std::convert::From<&pyo3::PyCell<MyClass>>` is not implemented for `i32`
|
2020-06-23 14:19:20 +00:00
|
|
|
|
|
|
|
|
= help: the following implementations were found:
|
|
|
|
<i32 as std::convert::From<bool>>
|
|
|
|
<i32 as std::convert::From<i16>>
|
|
|
|
<i32 as std::convert::From<i8>>
|
|
|
|
<i32 as std::convert::From<std::num::NonZeroI32>>
|
|
|
|
and 2 others
|
2020-08-28 02:29:38 +00:00
|
|
|
= note: required because of the requirements on the impl of `std::convert::Into<i32>` for `&pyo3::PyCell<MyClass>`
|
|
|
|
= note: required because of the requirements on the impl of `std::convert::TryFrom<&pyo3::PyCell<MyClass>>` for `i32`
|