2021-11-16 19:31:30 +00:00
|
|
|
error: enums can't be inherited by other classes
|
|
|
|
--> tests/ui/invalid_pyclass_enum.rs:3:11
|
|
|
|
|
|
|
|
|
3 | #[pyclass(subclass)]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
2022-03-18 14:58:44 +00:00
|
|
|
error: enums can't extend from other classes
|
2021-11-16 19:31:30 +00:00
|
|
|
--> tests/ui/invalid_pyclass_enum.rs:9:11
|
|
|
|
|
|
|
|
|
9 | #[pyclass(extends = PyList)]
|
|
|
|
| ^^^^^^^
|
2021-11-22 16:58:33 +00:00
|
|
|
|
2022-03-18 14:58:44 +00:00
|
|
|
error: #[pyclass] can't be used on enums without any variants
|
2021-11-22 16:58:33 +00:00
|
|
|
--> tests/ui/invalid_pyclass_enum.rs:16:18
|
|
|
|
|
|
|
|
|
16 | enum NoEmptyEnum {}
|
|
|
|
| ^^
|