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

Method staticmethod_without_attribute

tests/ui/invalid_pymethods.rs:16–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 const CLASS_ATTR_WITH_ATTRIBUTE_ARG: i32 = 3;
15
16 fn staticmethod_without_attribute() {}
17 //~^ ERROR: static method needs #[staticmethod] attribute
18
19 #[staticmethod]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected