1 error[E0072]: recursive type `Foo` has infinite size
2 --> $DIR/recursive-type-field.rs:3:1
5 | ^^^^^^^^^^^^^^ recursive type has infinite size
7 | ------------ recursive without indirection
9 = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `Foo` representable
11 error[E0072]: recursive type `Bar` has infinite size
12 --> $DIR/recursive-type-field.rs:8:1
15 | ^^^^^^^^^^^^^^ recursive type has infinite size
16 LL | y: (Foo<'a>, Foo<'a>),
17 | --------------------- recursive without indirection
18 LL | z: Option<Bar<'a>>,
19 | ------------------ recursive without indirection
22 | --------------- recursive without indirection
24 | ---------- recursive without indirection
26 | ---------- recursive without indirection
28 = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `Bar` representable
30 error: aborting due to 2 previous errors
32 For more information about this error, try `rustc --explain E0072`.