pyo3/tests/ui/invalid_pymethod_names.stderr

30 lines
751 B
Plaintext
Raw Permalink Normal View History

error: `name` may only be specified once
--> tests/ui/invalid_pymethod_names.rs:11:14
|
11 | #[getter(number)]
| ^^^^^^
error: `name` may only be specified once
--> tests/ui/invalid_pymethod_names.rs:18:12
|
18 | #[pyo3(name = "bar")]
| ^^^^
error: `name` not allowed with `#[new]`
--> tests/ui/invalid_pymethod_names.rs:24:19
|
24 | #[pyo3(name = "makenew")]
| ^^^^^^^^^
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]
| ^