rust/src/test/compile-fail/recursive-enum.rs

6 lines
100 B
Rust
Raw Normal View History

// error-pattern: illegal recursive enum type
enum list<T> { cons(T, list<T>), nil }
fn main() {}