2021-04-17 21:22:06 +00:00
|
|
|
error: `name` may only be specified once
|
2023-09-30 21:51:52 +00:00
|
|
|
--> tests/ui/invalid_pymethod_names.rs:11:14
|
2019-12-17 17:36:56 +00:00
|
|
|
|
|
2023-09-30 21:51:52 +00:00
|
|
|
11 | #[getter(number)]
|
|
|
|
| ^^^^^^
|
2019-12-17 17:36:56 +00:00
|
|
|
|
2021-04-17 21:22:06 +00:00
|
|
|
error: `name` may only be specified once
|
2022-03-18 14:58:44 +00:00
|
|
|
--> tests/ui/invalid_pymethod_names.rs:18:12
|
2019-12-17 17:36:56 +00:00
|
|
|
|
|
2021-04-17 21:22:06 +00:00
|
|
|
18 | #[pyo3(name = "bar")]
|
2022-03-18 14:58:44 +00:00
|
|
|
| ^^^^
|
2019-12-17 17:36:56 +00:00
|
|
|
|
2021-04-17 21:22:06 +00:00
|
|
|
error: `name` not allowed with `#[new]`
|
2021-10-12 00:52:24 +00:00
|
|
|
--> tests/ui/invalid_pymethod_names.rs:24:19
|
2019-12-17 17:36:56 +00:00
|
|
|
|
|
2021-04-17 21:22:06 +00:00
|
|
|
24 | #[pyo3(name = "makenew")]
|
|
|
|
| ^^^^^^^^^
|
2023-09-30 21:51:52 +00:00
|
|
|
|
|
|
|
error: expected ident or string literal for property name
|
|
|
|
--> tests/ui/invalid_pymethod_names.rs:31:14
|
|
|
|
|
|
|
|
|
31 | #[getter(1)]
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: expected `#[getter(name)]` to set the name
|
|
|
|
--> tests/ui/invalid_pymethod_names.rs:37:14
|
|
|
|
|
|
|
|
|
37 | #[getter = 1]
|
|
|
|
| ^
|