2020-07-10 23:28:42 -05:00
|
|
|
error[E0072]: recursive type `E` has infinite size
|
|
|
|
--> $DIR/infinite-recursive-type.rs:1:1
|
|
|
|
|
|
|
|
|
LL | enum E {
|
2022-08-15 14:11:11 -05:00
|
|
|
| ^^^^^^
|
2020-07-10 23:28:42 -05:00
|
|
|
LL |
|
|
|
|
LL | V(E),
|
|
|
|
| - recursive without indirection
|
|
|
|
|
|
2022-08-15 14:11:11 -05:00
|
|
|
help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
|
2020-07-10 23:28:42 -05:00
|
|
|
|
|
|
|
|
LL | V(Box<E>),
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++++ +
|
2020-07-10 23:28:42 -05:00
|
|
|
|
2023-11-21 10:44:51 -06:00
|
|
|
error: aborting due to 1 previous error
|
2020-07-10 23:28:42 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0072`.
|