pyo3/tests/ui/invalid_pyclass_enum.rs
2022-03-20 08:24:09 +00: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() {}