]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-72554.stderr
New upstream version 1.64.0+dfsg1
[rustc.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 | ^^^^^^^^^^^^^^^^^^^^ recursive type has infinite size
6 ...
7 LL | A(ElemDerived)
8 | ----------- recursive without indirection
9 |
10 help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `ElemDerived` representable
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`.