pyo3/tests/ui/invalid_need_module_arg_position.rs
2022-03-23 08:07:28 +01:00

13 lines
241 B
Rust

use pyo3::prelude::*;
#[pymodule]
fn module(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
#[pyfn(m, pass_module)]
fn fail(string: &str, module: &PyModule) -> PyResult<&str> {
module.name()
}
Ok(())
}
fn main(){}