blob: 88dad0033ddcfa27eca2ca555fa09409c24984d0 [file] [log] [blame]
error[E0072]: recursive type `MList` has infinite size
--> $DIR/infinite-tag-type-recursion.rs:1:1
|
LL | enum MList { Cons(isize, MList), Nil }
| ^^^^^^^^^^ ----- recursive without indirection
| |
| recursive type has infinite size
|
= help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `MList` representable
error: aborting due to previous error
For more information about this error, try `rustc --explain E0072`.