error[E0277]: the trait bound `Result<(), MyError>: IntoPyCallbackOutput<_>` is not satisfied --> $DIR/invalid_result_conversion.rs:21:1 | 21 | #[pyfunction] | ^^^^^^^^^^^^^ the trait `IntoPyCallbackOutput<_>` is not implemented for `Result<(), MyError>` | ::: $WORKSPACE/src/callback.rs | | T: IntoPyCallbackOutput, | ----------------------- required by this bound in `pyo3::callback::convert` | = help: the following implementations were found: as IntoPyCallbackOutput> = note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info)