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 indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `ObjectType` representable
12 error[E0072]: recursive type `TypeSignature` has infinite size
13 --> $DIR/issue-57271.rs:19:1
15 LL | pub enum TypeSignature {
16 | ^^^^^^^^^^^^^^^^^^^^^^ recursive type has infinite size
18 LL | Object(ObjectType),
19 | ---------- recursive without indirection
21 = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `TypeSignature` representable
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0072`.