1 2 3 4 5 6 7 8 9 10 11 12
enum Foo { Foo_(Bar) } enum Bar { //~^ ERROR recursive type `Bar` has infinite size BarNone, BarSome(Bar) } fn main() { }