pyo3/tests/ui/missing_intopy.stderr

12 lines
653 B
Plaintext
Raw Permalink Normal View History

error[E0277]: `Blah` cannot be converted to a Python object
--> tests/ui/missing_intopy.rs:4:14
|
4 | fn blah() -> Blah{
| ^^^^ the trait `IntoPy<Py<PyAny>>` is not implemented for `Blah`, which is required by `Blah: OkWrap<_>`
|
= 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::*`
= 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>`