os-rust/src/test/ui/infinite/infinite-struct.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
477 B
Text
Raw Normal View History

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
| |
| recursive type has infinite size
|
help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `Take` representable
|
LL | struct Take(Box<Take>);
| ++++ +
2022-06-28 22:56:32 +02:00
error: aborting due to previous error
2022-06-28 22:56:32 +02:00
For more information about this error, try `rustc --explain E0072`.