2022-10-16 09:35:58 +00:00
|
|
|
error[E0277]: the trait bound `PyErr: From<MyError>` is not satisfied
|
2022-05-09 17:15:43 +00:00
|
|
|
--> tests/ui/invalid_result_conversion.rs:21:1
|
|
|
|
|
|
|
|
|
21 | #[pyfunction]
|
2022-10-16 09:35:58 +00:00
|
|
|
| ^^^^^^^^^^^^^ the trait `From<MyError>` is not implemented for `PyErr`
|
2022-05-09 17:15:43 +00:00
|
|
|
|
|
2022-10-16 09:35:58 +00:00
|
|
|
= help: the following other types implement trait `From<T>`:
|
2024-02-26 23:14:41 +00:00
|
|
|
<PyErr as From<pyo3::Bound<'py, T>>>
|
2023-08-25 08:48:01 +00:00
|
|
|
<PyErr as From<std::io::Error>>
|
2024-01-27 11:37:26 +00:00
|
|
|
<PyErr as From<PyBorrowError>>
|
2023-12-29 14:43:43 +00:00
|
|
|
<PyErr as From<PyBorrowMutError>>
|
2023-08-25 08:48:01 +00:00
|
|
|
<PyErr as From<PyDowncastError<'a>>>
|
2023-12-21 12:51:39 +00:00
|
|
|
<PyErr as From<DowncastError<'_, '_>>>
|
|
|
|
<PyErr as From<DowncastIntoError<'_>>>
|
2023-08-25 08:48:01 +00:00
|
|
|
<PyErr as From<NulError>>
|
2022-10-16 09:35:58 +00:00
|
|
|
and $N others
|
2022-11-04 04:29:23 +00:00
|
|
|
= note: required for `MyError` to implement `Into<PyErr>`
|
2022-05-09 17:15:43 +00:00
|
|
|
= note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info)
|