2024-06-20 09:23:40 +00:00
|
|
|
error[E0277]: `Blah` cannot be converted to a Python object
|
|
|
|
--> tests/ui/missing_intopy.rs:4:14
|
2022-10-16 09:35:58 +00:00
|
|
|
|
|
2024-06-20 09:23:40 +00:00
|
|
|
4 | fn blah() -> Blah{
|
|
|
|
| ^^^^ the trait `IntoPy<Py<PyAny>>` is not implemented for `Blah`, which is required by `Blah: OkWrap<_>`
|
2022-10-16 09:35:58 +00:00
|
|
|
|
|
2024-06-20 09:23:40 +00:00
|
|
|
= note: `IntoPy` is automatically implemented by the `#[pyclass]` macro
|
|
|
|
= note: if you do not wish to have a corresponding Python type, implement `IntoPy` manually
|
|
|
|
= note: if you do not own `Blah` you can perform a manual conversion to one of the types in `pyo3::types::*`
|
2024-05-03 07:42:30 +00:00
|
|
|
= help: the trait `OkWrap<T>` is implemented for `Result<T, E>`
|
2022-11-04 04:29:23 +00:00
|
|
|
= note: required for `Blah` to implement `OkWrap<Blah>`
|