pyo3/tests/ui/invalid_pyfunctions.stderr

12 lines
375 B
Plaintext
Raw Normal View History

2021-03-09 23:37:01 +00:00
error: Python functions cannot have generic type parameters
--> $DIR/invalid_pyfunctions.rs:4:21
|
4 | fn generic_function<T>(value: T) {}
| ^
error: Python functions cannot have `impl Trait` arguments
--> $DIR/invalid_pyfunctions.rs:7:36
|
7 | fn impl_trait_function(impl_trait: impl AsRef<PyAny>) {}
| ^^^^