2021-05-06 22:07:19 +00:00
|
|
|
error[E0277]: the trait bound `Result<(), MyError>: IntoPyCallbackOutput<_>` is not satisfied
|
2021-06-24 14:18:48 +00:00
|
|
|
--> $DIR/invalid_result_conversion.rs:21:1
|
2020-08-29 07:25:20 +00:00
|
|
|
|
|
2021-06-24 14:18:48 +00:00
|
|
|
21 | #[pyfunction]
|
2021-05-06 22:07:19 +00:00
|
|
|
| ^^^^^^^^^^^^^ the trait `IntoPyCallbackOutput<_>` is not implemented for `Result<(), MyError>`
|
2020-08-29 07:25:20 +00:00
|
|
|
|
|
2020-11-19 12:05:08 +00:00
|
|
|
::: $WORKSPACE/src/callback.rs
|
2020-08-29 07:25:20 +00:00
|
|
|
|
|
2020-11-19 12:05:08 +00:00
|
|
|
| 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:
|
2021-05-06 22:07:19 +00:00
|
|
|
<Result<T, E> as IntoPyCallbackOutput<U>>
|
2021-07-30 22:30:56 +00:00
|
|
|
= note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info)
|