fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0072]: recursive type `ObjectType` has infinite size 2 --> $DIR/issue-57271.rs:7:1 3 | 4LL | pub enum ObjectType { 5 | ^^^^^^^^^^^^^^^^^^^ recursive type has infinite size 6LL | Class(ClassTypeSignature), 7LL | Array(TypeSignature), 8 | ------------- recursive without indirection 9 | 10 = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `ObjectType` representable 11 12error[E0072]: recursive type `TypeSignature` has infinite size 13 --> $DIR/issue-57271.rs:19:1 14 | 15LL | pub enum TypeSignature { 16 | ^^^^^^^^^^^^^^^^^^^^^^ recursive type has infinite size 17LL | Base(BaseType), 18LL | Object(ObjectType), 19 | ---------- recursive without indirection 20 | 21 = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `TypeSignature` representable 22 23error: aborting due to 2 previous errors 24 25For more information about this error, try `rustc --explain E0072`.