2022-12-27 20:43:14 +00:00
|
|
|
error: expected one of: `crate`, `dict`, `extends`, `freelist`, `frozen`, `get_all`, `mapping`, `module`, `name`, `sequence`, `set_all`, `subclass`, `text_signature`, `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
|
2021-10-12 00:52:24 +00:00
|
|
|
--> tests/ui/invalid_pyclass_args.rs:18:20
|
2020-03-22 08:13:02 +00:00
|
|
|
|
|
2020-12-12 09:50:25 +00:00
|
|
|
18 | #[pyclass(module = my_module)]
|
2020-03-22 08:13:02 +00:00
|
|
|
| ^^^^^^^^^
|
2020-03-22 09:48:22 +00:00
|
|
|
|
2022-12-27 20:43:14 +00:00
|
|
|
error: expected one of: `crate`, `dict`, `extends`, `freelist`, `frozen`, `get_all`, `mapping`, `module`, `name`, `sequence`, `set_all`, `subclass`, `text_signature`, `unsendable`, `weakref`
|
2021-10-12 00:52:24 +00:00
|
|
|
--> tests/ui/invalid_pyclass_args.rs:21:11
|
2020-03-22 09:48:22 +00:00
|
|
|
|
|
2020-12-12 09:50:25 +00:00
|
|
|
21 | #[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`
|
|
|
|
--> tests/ui/invalid_pyclass_args.rs:25:8
|
|
|
|
|
|
|
|
|
25 | struct CannotBeMappingAndSequence {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|