error[E0277]: the trait bound `i32: std::convert::From<&pyo3::pycell::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 `std::convert::From<&pyo3::pycell::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 `std::convert::Into` for `&pyo3::pycell::PyCell` = note: required because of the requirements on the impl of `std::convert::TryFrom<&pyo3::pycell::PyCell>` for `i32`