2020-08-29 07:25:20 +00:00
|
|
|
error[E0277]: the trait bound `std::result::Result<(), MyError>: pyo3::callback::IntoPyCallbackOutput<_>` is not satisfied
|
|
|
|
--> $DIR/invalid_result_conversion.rs:22:1
|
|
|
|
|
|
|
|
|
22 | #[pyfunction]
|
|
|
|
| ^^^^^^^^^^^^^ the trait `pyo3::callback::IntoPyCallbackOutput<_>` is not implemented for `std::result::Result<(), MyError>`
|
|
|
|
|
|
2020-08-28 02:29:38 +00:00
|
|
|
::: $WORKSPACE/src/callback.rs:170:8
|
2020-08-29 07:25:20 +00:00
|
|
|
|
|
2020-08-28 02:29:38 +00:00
|
|
|
170 | T: IntoPyCallbackOutput<U>,
|
2020-08-29 07:25:20 +00:00
|
|
|
| ----------------------- required by this bound in `pyo3::callback::convert`
|
|
|
|
|
|
|
|
|
= help: the following implementations were found:
|
|
|
|
<std::result::Result<T, E> as pyo3::callback::IntoPyCallbackOutput<U>>
|
|
|
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
|