summaryrefslogtreecommitdiffstats
path: root/tests/ui/recursion/recursive-enum.rs
blob: 32e707607b8d43151a4d091d3c99c03d70ddeadf (plain)
1
2
3
4
enum List<T> { Cons(T, List<T>), Nil }
//~^ ERROR recursive type `List` has infinite size

fn main() {}