error[E0599]: the method `assert_into_py_result` exists for struct `Blah`, but its trait bounds were not satisfied --> tests/ui/missing_intopy.rs:3:1 | 1 | struct Blah; | ----------- | | | method `assert_into_py_result` not found for this struct | doesn't satisfy `Blah: IntoPy>` | doesn't satisfy `Blah: IntoPyResult` 2 | 3 | #[pyo3::pyfunction] | ^^^^^^^^^^^^^^^^^^^ method cannot be called on `Blah` due to unsatisfied trait bounds | = note: the following trait bounds were not satisfied: `Blah: IntoPy>` which is required by `Blah: IntoPyResult` note: the following trait must be implemented --> src/conversion.rs | | pub trait IntoPy: Sized { | ^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the attribute macro `pyo3::pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `Blah: IntoPyCallbackOutput<_>` is not satisfied --> tests/ui/missing_intopy.rs:3:1 | 3 | #[pyo3::pyfunction] | ^^^^^^^^^^^^^^^^^^^ the trait `IntoPyCallbackOutput<_>` is not implemented for `Blah` | = help: the following other types implement trait `IntoPyCallbackOutput`: <() as IntoPyCallbackOutput<()>> <() as IntoPyCallbackOutput> <*mut PyObject as IntoPyCallbackOutput<*mut PyObject>> > , Py> as IntoPyCallbackOutput<*mut PyObject>> as IntoPyCallbackOutput, Py>>> , Py> as IntoPyCallbackOutput<*mut PyObject>> as IntoPyCallbackOutput, Py>>> and 7 others note: required by a bound in `pyo3::callback::convert` --> src/callback.rs | | T: IntoPyCallbackOutput, | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `pyo3::callback::convert` = note: this error originates in the attribute macro `pyo3::pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info)