1 error[E0072]: recursive type `ObjectType` has infinite size
2 --> $DIR/issue-57271.rs:7:1
4 LL | pub enum ObjectType {
5 | ^^^^^^^^^^^^^^^^^^^ recursive type has infinite size
6 LL | Class(ClassTypeSignature),
7 LL | Array(TypeSignature),
8 | ------------- recursive without indirection
10 help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `ObjectType` representable
12 LL | Array(Box<TypeSignature>),
15 error[E0072]: recursive type `TypeSignature` has infinite size
16 --> $DIR/issue-57271.rs:19:1
18 LL | pub enum TypeSignature {
19 | ^^^^^^^^^^^^^^^^^^^^^^ recursive type has infinite size
21 LL | Object(ObjectType),
22 | ---------- recursive without indirection
24 help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `TypeSignature` representable
26 LL | Object(Box<ObjectType>),
29 error: aborting due to 2 previous errors
31 For more information about this error, try `rustc --explain E0072`.