fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0072]: recursive types `ObjectType` and `TypeSignature` have infinite size 2 --> $DIR/issue-57271.rs:7:1 3 | 4LL | pub enum ObjectType { 5 | ^^^^^^^^^^^^^^^^^^^ 6LL | Class(ClassTypeSignature), 7LL | Array(TypeSignature), 8 | ------------- recursive without indirection 9... 10LL | pub enum TypeSignature { 11 | ^^^^^^^^^^^^^^^^^^^^^^ 12LL | Base(BaseType), 13LL | Object(ObjectType), 14 | ---------- recursive without indirection 15 | 16help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle 17 | 18LL ~ Array(Box<TypeSignature>), 19LL | TypeVariable(()), 20 ... 21LL | Base(BaseType), 22LL ~ Object(Box<ObjectType>), 23 | 24 25error: aborting due to previous error 26 27For more information about this error, try `rustc --explain E0072`.