2022-10-16 09:35:58 +00:00
|
|
|
error[E0277]: the trait bound `Blah: IntoPy<Py<PyAny>>` is not satisfied
|
|
|
|
--> tests/ui/missing_intopy.rs:3:1
|
|
|
|
|
|
|
|
|
3 | #[pyo3::pyfunction]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ the trait `IntoPy<Py<PyAny>>` is not implemented for `Blah`
|
|
|
|
|
|
|
|
|
= help: the following other types implement trait `IntoPy<T>`:
|
|
|
|
<&'a OsString as IntoPy<Py<PyAny>>>
|
|
|
|
<&'a Path as IntoPy<Py<PyAny>>>
|
|
|
|
<&'a PathBuf as IntoPy<Py<PyAny>>>
|
|
|
|
<&'a PyErr as IntoPy<Py<PyAny>>>
|
|
|
|
<&'a String as IntoPy<Py<PyAny>>>
|
|
|
|
<&'a [u8] as IntoPy<Py<PyAny>>>
|
|
|
|
<&'a str as IntoPy<Py<PyAny>>>
|
|
|
|
<&'a str as IntoPy<Py<PyString>>>
|
|
|
|
and $N others
|
2022-11-04 04:29:23 +00:00
|
|
|
= note: required for `Blah` to implement `OkWrap<Blah>`
|
2022-10-16 09:35:58 +00:00
|
|
|
= note: this error originates in the attribute macro `pyo3::pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info)
|