error[E0277]: the trait bound `i32: From<&pyo3::PyCell>` is not satisfied --> $DIR/invalid_pymethod_receiver.rs:8:43 | 8 | fn method_with_invalid_self_type(slf: i32, py: Python, index: u32) {} | ^^^ the trait `From<&pyo3::PyCell>` is not implemented for `i32` | = help: the following implementations were found: > > > > and 2 others = note: required because of the requirements on the impl of `Into` for `&pyo3::PyCell` = note: required because of the requirements on the impl of `TryFrom<&pyo3::PyCell>` for `i32` = note: required by `std::convert::TryFrom::try_from`