50659b6b02
`pyo3-macros-backend` is now compiled with PyO3 cfgs to enable different magic method definitions based on version. Add check for correct number of arguments on magic methods.
6 lines
159 B
Plaintext
6 lines
159 B
Plaintext
error: Expected 1 arguments, got 0
|
|
--> tests/ui/invalid_pymethod_proto_args.rs:8:8
|
|
|
|
|
8 | fn __truediv__(&self) -> PyResult<()> {
|
|
| ^^^^^^^^^^^
|