2020-11-19 12:05:08 +00:00
|
|
|
error[E0277]: the trait bound `i32: From<&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-11-19 12:05:08 +00:00
|
|
|
| ^^^ the trait `From<&PyCell<MyClass>>` is not implemented for `i32`
|
2020-06-23 14:19:20 +00:00
|
|
|
|
|
|
|
|
= help: the following implementations were found:
|
2020-11-19 12:05:08 +00:00
|
|
|
<i32 as From<NonZeroI32>>
|
|
|
|
<i32 as From<bool>>
|
|
|
|
<i32 as From<i16>>
|
|
|
|
<i32 as From<i8>>
|
2020-06-23 14:19:20 +00:00
|
|
|
and 2 others
|
2020-11-19 12:05:08 +00:00
|
|
|
= note: required because of the requirements on the impl of `Into<i32>` for `&PyCell<MyClass>`
|
|
|
|
= note: required because of the requirements on the impl of `TryFrom<&PyCell<MyClass>>` for `i32`
|
2020-12-31 15:46:54 +00:00
|
|
|
= note: required by `std::convert::TryFrom::try_from`
|