pyo3/tests/ui/invalid_pyclass_enum.rs
2021-11-23 01:15:07 +08:00

19 lines
194 B
Rust

use pyo3::prelude::*;
#[pyclass(subclass)]
enum NotBaseClass {
x,
y,
}
#[pyclass(extends = PyList)]
enum NotDrivedClass {
x,
y,
}
#[pyclass]
enum NoEmptyEnum {}
fn main() {}