pyo3/tests/ui/invalid_pyclass_item.rs
b05902132 b7419b5278 Refactor #[pyclass] and now it supports enum.
There's no functionality since it does not generate __richcmp__.

Also it only works on enums with only variants, and does not support
C-like enums.
2021-11-21 20:05:53 +08:00

7 lines
60 B
Rust

use pyo3::prelude::*;
#[pyclass]
fn foo() {}
fn main() {}