pyo3/tests/test_wrap_pyfunction_deduction.rs
2021-06-24 22:34:55 +08:00

14 lines
249 B
Rust

use pyo3::{prelude::*, types::PyCFunction};
#[pyfunction]
fn f() {}
pub fn add_wrapped(wrapper: &impl Fn(Python) -> PyResult<&PyCFunction>) {
let _ = wrapper;
}
#[test]
fn wrap_pyfunction_deduction() {
add_wrapped(wrap_pyfunction!(f));
}