pyo3/tests/ui/invalid_pyfunctions.rs
2021-05-25 11:32:52 +01:00

13 lines
203 B
Rust

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