|
1 | | -error[E0599]: the method `assert_into_py_result` exists for struct `Blah`, but its trait bounds were not satisfied |
2 | | - --> tests/ui/missing_intopy.rs:3:1 |
3 | | - | |
4 | | -1 | struct Blah; |
5 | | - | ----------- |
6 | | - | | |
7 | | - | method `assert_into_py_result` not found for this struct |
8 | | - | doesn't satisfy `Blah: IntoPy<Py<PyAny>>` |
9 | | - | doesn't satisfy `Blah: IntoPyResult<Blah>` |
10 | | -2 | |
11 | | -3 | #[pyo3::pyfunction] |
12 | | - | ^^^^^^^^^^^^^^^^^^^ method cannot be called on `Blah` due to unsatisfied trait bounds |
13 | | - | |
14 | | - = note: the following trait bounds were not satisfied: |
15 | | - `Blah: IntoPy<Py<PyAny>>` |
16 | | - which is required by `Blah: IntoPyResult<Blah>` |
17 | | -note: the following trait must be implemented |
18 | | - --> src/conversion.rs |
19 | | - | |
20 | | - | pub trait IntoPy<T>: Sized { |
21 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
22 | | - = note: this error originates in the attribute macro `pyo3::pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info) |
23 | | - |
24 | | -error[E0277]: the trait bound `Blah: IntoPyCallbackOutput<_>` is not satisfied |
25 | | - --> tests/ui/missing_intopy.rs:3:1 |
26 | | - | |
27 | | -3 | #[pyo3::pyfunction] |
28 | | - | ^^^^^^^^^^^^^^^^^^^ the trait `IntoPyCallbackOutput<_>` is not implemented for `Blah` |
29 | | - | |
30 | | - = help: the following other types implement trait `IntoPyCallbackOutput<Target>`: |
31 | | - <() as IntoPyCallbackOutput<()>> |
32 | | - <() as IntoPyCallbackOutput<i32>> |
33 | | - <*mut PyObject as IntoPyCallbackOutput<*mut PyObject>> |
34 | | - <HashCallbackOutput as IntoPyCallbackOutput<isize>> |
35 | | - <IterANextOutput<Py<PyAny>, Py<PyAny>> as IntoPyCallbackOutput<*mut PyObject>> |
36 | | - <IterANextOutput<T, U> as IntoPyCallbackOutput<IterANextOutput<Py<PyAny>, Py<PyAny>>>> |
37 | | - <IterNextOutput<Py<PyAny>, Py<PyAny>> as IntoPyCallbackOutput<*mut PyObject>> |
38 | | - <IterNextOutput<T, U> as IntoPyCallbackOutput<IterNextOutput<Py<PyAny>, Py<PyAny>>>> |
39 | | - and 7 others |
40 | | -note: required by a bound in `pyo3::callback::convert` |
41 | | - --> src/callback.rs |
42 | | - | |
43 | | - | T: IntoPyCallbackOutput<U>, |
44 | | - | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `pyo3::callback::convert` |
45 | | - = note: this error originates in the attribute macro `pyo3::pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 1 | +error[E0277]: the trait bound `Blah: IntoPy<Py<PyAny>>` is not satisfied |
| 2 | + --> tests/ui/missing_intopy.rs:3:1 |
| 3 | + | |
| 4 | +3 | #[pyo3::pyfunction] |
| 5 | + | ^^^^^^^^^^^^^^^^^^^ the trait `IntoPy<Py<PyAny>>` is not implemented for `Blah` |
| 6 | + | |
| 7 | + = help: the following other types implement trait `IntoPy<T>`: |
| 8 | + <&'a OsString as IntoPy<Py<PyAny>>> |
| 9 | + <&'a Path as IntoPy<Py<PyAny>>> |
| 10 | + <&'a PathBuf as IntoPy<Py<PyAny>>> |
| 11 | + <&'a PyErr as IntoPy<Py<PyAny>>> |
| 12 | + <&'a String as IntoPy<Py<PyAny>>> |
| 13 | + <&'a [u8] as IntoPy<Py<PyAny>>> |
| 14 | + <&'a str as IntoPy<Py<PyAny>>> |
| 15 | + <&'a str as IntoPy<Py<PyString>>> |
| 16 | + and $N others |
| 17 | + = note: required because of the requirements on the impl of `OkWrap<Blah>` for `Blah` |
| 18 | + = note: this error originates in the attribute macro `pyo3::pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info) |
0 commit comments