rust/src/test/compile-fail/recursive-enum.rs
2012-01-27 16:03:43 +01:00

6 lines
100 B
Rust

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