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

Function invalid_pyfunction_argument

tests/ui/invalid_pyfunction_argument.rs:9–13  ·  view source on GitHub ↗
(arg: AtomicPtr<()>)

Source from the content-addressed store, hash-verified

7
8#[pyfunction]
9fn invalid_pyfunction_argument(arg: AtomicPtr<()>) {
10 //~^ ERROR: `Atomic<*mut ()>` cannot be used as a Python function argument
11 //~[inspect]| ERROR: `Atomic<*mut ()>` cannot be used as a Python function argument
12 let _ = arg;
13}
14
15#[pyclass]
16#[derive(Clone)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected