]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-72554.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[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 LL |
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: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0072`.