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