1 error[E0072]: recursive types `A` and `B` have infinite size
2 --> $DIR/mutual-struct-recursion.rs:1:1
8 | ---- recursive without indirection
13 | ---- recursive without indirection
15 help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
24 error[E0072]: recursive types `C` and `D` have infinite size
25 --> $DIR/mutual-struct-recursion.rs:11:1
30 LL | y: Option<Option<D<T>>>,
31 | ---- recursive without indirection
35 LL | z: Option<Option<C<T>>>,
36 | ---- recursive without indirection
38 help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
40 LL ~ y: Option<Option<Box<D<T>>>>,
44 LL ~ z: Option<Option<Box<C<T>>>>,
47 error: aborting due to 2 previous errors
49 For more information about this error, try `rustc --explain E0072`.