pyo3/tests/ui/invalid_pyfunctions.rs
2021-03-09 23:47:47 +00:00

10 lines
159 B
Rust

use pyo3::prelude::*;
#[pyfunction]
fn generic_function<T>(value: T) {}
#[pyfunction]
fn impl_trait_function(impl_trait: impl AsRef<PyAny>) {}
fn main() {}