2020-11-26 15:32:41 +00:00
|
|
|
error[E0072]: recursive type `Take` has infinite size
|
|
|
|
--> $DIR/infinite-struct.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct Take(Take);
|
2022-02-13 16:27:59 +01:00
|
|
|
| ^^^^^^^^^^^ ---- recursive without indirection
|
|
|
|
| |
|
2020-11-26 15:32:41 +00:00
|
|
|
| recursive type has infinite size
|
|
|
|
|
|
|
|
|
help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `Take` representable
|
|
|
|
|
|
|
|
|
LL | struct Take(Box<Take>);
|
2021-06-21 19:07:19 -07:00
|
|
|
| ++++ +
|
2020-11-26 15:32:41 +00:00
|
|
|
|
2022-06-28 22:56:32 +02:00
|
|
|
error: aborting due to previous error
|
2020-11-26 15:32:41 +00:00
|
|
|
|
2022-06-28 22:56:32 +02:00
|
|
|
For more information about this error, try `rustc --explain E0072`.
|