1 error[E0072]: recursive type `Baz` has infinite size
2 --> $DIR/sized-cycle-note.rs:19:1
4 LL | struct Baz { q: Option<Foo> }
5 | ^^^^^^^^^^ -------------- recursive without indirection
7 | recursive type has infinite size
9 = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `Baz` representable
11 error[E0072]: recursive type `Foo` has infinite size
12 --> $DIR/sized-cycle-note.rs:21:1
14 LL | struct Foo { q: Option<Baz> }
15 | ^^^^^^^^^^ -------------- recursive without indirection
17 | recursive type has infinite size
19 = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `Foo` representable
21 error: aborting due to 2 previous errors
23 For more information about this error, try `rustc --explain E0072`.