MCPcopy Create free account
hub / github.com/PyO3/pyo3 / module_fn_multiple_errors

Function module_fn_multiple_errors

tests/ui/invalid_pymodule_args.rs:12–14  ·  view source on GitHub ↗

~^ ERROR: `name` may only be specified once ~| ERROR: `gil_used` may only be specified once

(m: &Bound<'_, PyModule>)

Source from the content-addressed store, hash-verified

10//~^ ERROR: `name` may only be specified once
11//~| ERROR: `gil_used` may only be specified once
12fn module_fn_multiple_errors(m: &Bound<'_, PyModule>) -> PyResult<()> {
13 Ok(())
14}
15
16#[pyo3::pymodule(gil_used = false, gil_used = true, name = "foo", name = "bar")]
17//~^ ERROR: `name` may only be specified once

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected