2022-10-16 09:35:58 +00:00
|
|
|
error[E0277]: the trait bound `PyErr: From<MyError>` is not satisfied
|
2024-06-20 09:23:40 +00:00
|
|
|
--> tests/ui/invalid_result_conversion.rs:22:25
|
2022-05-09 17:15:43 +00:00
|
|
|
|
|
2024-06-20 09:23:40 +00:00
|
|
|
22 | fn should_not_work() -> Result<(), MyError> {
|
|
|
|
| ^^^^^^ the trait `From<MyError>` is not implemented for `PyErr`, which is required by `MyError: Into<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-06-13 18:24:13 +00:00
|
|
|
<PyErr as From<AddrParseError>>
|
|
|
|
<PyErr as From<DecodeUtf16Error>>
|
2023-12-21 12:51:39 +00:00
|
|
|
<PyErr as From<DowncastError<'_, '_>>>
|
|
|
|
<PyErr as From<DowncastIntoError<'_>>>
|
2024-06-13 18:24:13 +00:00
|
|
|
<PyErr as From<FromUtf16Error>>
|
|
|
|
<PyErr as From<FromUtf8Error>>
|
|
|
|
<PyErr as From<Infallible>>
|
|
|
|
<PyErr as From<IntoInnerError<W>>>
|
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>`
|