1 error[E0072]: recursive type `ElemDerived` has infinite size
2 --> $DIR/issue-72554.rs:4:1
4 LL | pub enum ElemDerived {
5 | ^^^^^^^^^^^^^^^^^^^^ recursive type has infinite size
8 | ----------- recursive without indirection
10 help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `ElemDerived` representable
12 LL | A(Box<ElemDerived>)
15 error[E0391]: cycle detected when computing drop-check constraints for `ElemDerived`
16 --> $DIR/issue-72554.rs:4:1
18 LL | pub enum ElemDerived {
19 | ^^^^^^^^^^^^^^^^^^^^
21 = note: ...which immediately requires computing drop-check constraints for `ElemDerived` again
22 note: cycle used when computing drop-check constraints for `Elem`
23 --> $DIR/issue-72554.rs:11:1
28 error: aborting due to 2 previous errors
30 Some errors have detailed explanations: E0072, E0391.
31 For more information about an error, try `rustc --explain E0072`.