2023-11-27 22:02:19 +00:00
|
|
|
error: expected one of: `crate`, `dict`, `extends`, `freelist`, `frozen`, `get_all`, `mapping`, `module`, `name`, `rename_all`, `sequence`, `set_all`, `subclass`, `unsendable`, `weakref`
|
2021-10-12 00:52:24 +00:00
|
|
|
--> tests/ui/invalid_pyclass_args.rs:3:11
|
2020-03-22 08:13:02 +00:00
|
|
|
|
|
|
|
|
3 | #[pyclass(extend=pyo3::types::PyDict)]
|
|
|
|
| ^^^^^^
|
|
|
|
|
2022-03-18 14:58:44 +00:00
|
|
|
error: expected identifier
|
2021-10-12 00:52:24 +00:00
|
|
|
--> tests/ui/invalid_pyclass_args.rs:6:21
|
2020-03-22 08:13:02 +00:00
|
|
|
|
|
|
|
|
6 | #[pyclass(extends = "PyDict")]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
2022-03-18 14:58:44 +00:00
|
|
|
error: expected string literal
|
2021-10-12 00:52:24 +00:00
|
|
|
--> tests/ui/invalid_pyclass_args.rs:9:18
|
2020-03-22 08:13:02 +00:00
|
|
|
|
|
|
|
|
9 | #[pyclass(name = m::MyClass)]
|
2021-01-09 17:33:28 +00:00
|
|
|
| ^
|
2020-03-22 08:13:02 +00:00
|
|
|
|
2022-03-18 14:58:44 +00:00
|
|
|
error: expected a single identifier in double quotes
|
2021-10-12 00:52:24 +00:00
|
|
|
--> tests/ui/invalid_pyclass_args.rs:12:18
|
2020-12-12 09:50:25 +00:00
|
|
|
|
|
|
|
|
12 | #[pyclass(name = "Custom Name")]
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2022-03-18 14:58:44 +00:00
|
|
|
error: expected string literal
|
2021-10-12 00:52:24 +00:00
|
|
|
--> tests/ui/invalid_pyclass_args.rs:15:18
|
2020-12-12 09:50:25 +00:00
|
|
|
|
|
|
|
|
15 | #[pyclass(name = CustomName)]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2022-03-18 14:58:44 +00:00
|
|
|
error: expected string literal
|
2023-08-14 21:29:44 +00:00
|
|
|
--> tests/ui/invalid_pyclass_args.rs:18:24
|
2020-03-22 08:13:02 +00:00
|
|
|
|
|
2023-08-14 21:29:44 +00:00
|
|
|
18 | #[pyclass(rename_all = camelCase)]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: expected a valid renaming rule, possible values are: "camelCase", "kebab-case", "lowercase", "PascalCase", "SCREAMING-KEBAB-CASE", "SCREAMING_SNAKE_CASE", "snake_case", "UPPERCASE"
|
|
|
|
--> tests/ui/invalid_pyclass_args.rs:21:24
|
|
|
|
|
|
|
|
|
21 | #[pyclass(rename_all = "Camel-Case")]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: expected string literal
|
|
|
|
--> tests/ui/invalid_pyclass_args.rs:24:20
|
|
|
|
|
|
|
|
|
24 | #[pyclass(module = my_module)]
|
2020-03-22 08:13:02 +00:00
|
|
|
| ^^^^^^^^^
|
2020-03-22 09:48:22 +00:00
|
|
|
|
2023-11-27 22:02:19 +00:00
|
|
|
error: expected one of: `crate`, `dict`, `extends`, `freelist`, `frozen`, `get_all`, `mapping`, `module`, `name`, `rename_all`, `sequence`, `set_all`, `subclass`, `unsendable`, `weakref`
|
2023-08-14 21:29:44 +00:00
|
|
|
--> tests/ui/invalid_pyclass_args.rs:27:11
|
2020-03-22 09:48:22 +00:00
|
|
|
|
|
2023-08-14 21:29:44 +00:00
|
|
|
27 | #[pyclass(weakrev)]
|
2020-03-22 09:48:22 +00:00
|
|
|
| ^^^^^^^
|
2022-08-19 12:36:34 +00:00
|
|
|
|
|
|
|
error: a `#[pyclass]` cannot be both a `mapping` and a `sequence`
|
2023-08-14 21:29:44 +00:00
|
|
|
--> tests/ui/invalid_pyclass_args.rs:31:8
|
2022-08-19 12:36:34 +00:00
|
|
|
|
|
2023-08-14 21:29:44 +00:00
|
|
|
31 | struct CannotBeMappingAndSequence {}
|
2022-08-19 12:36:34 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|