1 error[E0072]: recursive type `Take` has infinite size
2 --> $DIR/infinite-struct.rs:1:1
4 LL | struct Take(Take);
5 | ^^^^^^^^^^^ ---- recursive without indirection
7 help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
9 LL | struct Take(Box<Take>);
12 error[E0072]: recursive type `Foo` has infinite size
13 --> $DIR/infinite-struct.rs:10:1
18 | --- recursive without indirection
20 help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
22 LL | x: Bar<Box<Foo>>,
25 error: aborting due to 2 previous errors
27 For more information about this error, try `rustc --explain E0072`.