]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-72554.stderr
Rollup merge of #99818 - aliemjay:fix-closure-normalize, r=jackh726
[rust.git] / src / test / ui / issues / issue-72554.stderr
1 error[E0072]: recursive type `ElemDerived` has infinite size
2   --> $DIR/issue-72554.rs:4:1
3    |
4 LL | pub enum ElemDerived {
5    | ^^^^^^^^^^^^^^^^^^^^
6 ...
7 LL |     A(ElemDerived)
8    |       ----------- recursive without indirection
9    |
10 help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
11    |
12 LL |     A(Box<ElemDerived>)
13    |       ++++           +
14
15 error[E0391]: cycle detected when computing drop-check constraints for `ElemDerived`
16   --> $DIR/issue-72554.rs:4:1
17    |
18 LL | pub enum ElemDerived {
19    | ^^^^^^^^^^^^^^^^^^^^
20    |
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
24    |
25 LL | pub enum Elem {
26    | ^^^^^^^^^^^^^
27
28 error: aborting due to 2 previous errors
29
30 Some errors have detailed explanations: E0072, E0391.
31 For more information about an error, try `rustc --explain E0072`.