blob: 87a9e08dd381a64837b7cc68765386a86fec5ce6 [file] [log] [blame]
enum MList { Cons(isize, MList), Nil }
//~^ ERROR recursive type `MList` has infinite size
fn main() { let a = MList::Cons(10, MList::Cons(11, MList::Nil)); }