rust/tests/rustdoc-ui/infinite-recursive-type.stderr

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

18 lines
424 B
Plaintext
Raw Normal View History

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
| ^^^^^^
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
|
LL | V(Box<E>),
| ++++ +
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0072`.