2021-04-17 21:22:06 +00:00
|
|
|
error: `name` may only be specified once
|
2021-10-12 00:52:24 +00:00
|
|
|
--> tests/ui/invalid_pymethod_names.rs:10:19
|
2019-12-17 17:36:56 +00:00
|
|
|
|
|
2021-04-17 21:22:06 +00:00
|
|
|
10 | #[pyo3(name = "num")]
|
|
|
|
| ^^^^^
|
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")]
|
|
|
|
| ^^^^^^^^^
|