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 some indirection (e.g., a `Box`, `Rc`, or `&`) to make `Foo` representable
11 LL | bar: Box<Bar<'a>>,
14 error[E0072]: recursive type `Bar` has infinite size
15 --> $DIR/recursive-type-field.rs:8:1
18 | ^^^^^^^^^^^^^^ recursive type has infinite size
19 LL | y: (Foo<'a>, Foo<'a>),
20 | ------------------ recursive without indirection
21 LL | z: Option<Bar<'a>>,
22 | --------------- recursive without indirection
25 | ------------ recursive without indirection
27 | ------- recursive without indirection
29 | ------- recursive without indirection
31 = help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `Bar` representable
33 error: aborting due to 2 previous errors
35 For more information about this error, try `rustc --explain E0072`.