about summary refs log tree commit diff
path: root/src/test/compile-fail/recursive-enum.rs
blob: b3764036b99f08647983fa005270bfc3adbfdd26 (plain)
1
2
3
4
5
// error-pattern: illegal recursive enum type

enum list<T> { cons(T, list<T>), nil }

fn main() {}