A struct or enum references itself directly without indirection, producing a type of infinite size. Wrap the recursive reference in a heap-allocated pointer such as Box, Rc, or Arc.
E0072
rust A struct or enum references itself directly without indirection, producing a type of infinite size. Wrap the recursive reference in a heap-allocated pointer such as Box, Rc, or Arc.