6 lines
100 B
Rust
6 lines
100 B
Rust
|
// error-pattern: illegal recursive enum type
|
||
|
|
||
|
enum list<T> { cons(T, list<T>), nil }
|
||
|
|
||
|
fn main() {}
|