2021-01-09 17:33:28 +00:00
|
|
|
error: getter function can only have one argument (of type pyo3::Python)
|
2020-02-08 18:50:55 +00:00
|
|
|
--> $DIR/invalid_property_args.rs:9:50
|
|
|
|
|
|
|
|
|
9 | fn getter_with_arg(&self, py: Python, index: u32) {}
|
|
|
|
| ^^^
|
|
|
|
|
2021-01-09 17:33:28 +00:00
|
|
|
error: setter function expected to have one argument
|
2020-02-08 18:50:55 +00:00
|
|
|
--> $DIR/invalid_property_args.rs:18:8
|
|
|
|
|
|
|
|
|
18 | fn setter_with_no_arg(&mut self, py: Python) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-01-09 17:33:28 +00:00
|
|
|
error: setter function can have at most two arguments ([pyo3::Python,] and value)
|
2020-02-08 18:50:55 +00:00
|
|
|
--> $DIR/invalid_property_args.rs:24:72
|
|
|
|
|
|
|
|
|
24 | fn setter_with_too_many_args(&mut self, py: Python, foo: u32, bar: u32) {}
|
|
|
|
| ^^^
|