]> git.lizzy.rs Git - rust.git/blob - tests/ui/span/multiline-span-E0072.stderr
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / ui / span / multiline-span-E0072.stderr
1 error[E0072]: recursive type `ListNode` has infinite size
2   --> $DIR/multiline-span-E0072.rs:2:1
3    |
4 LL | / struct
5 LL | | ListNode
6    | |________^
7 ...
8 LL |       tail: Option<ListNode>,
9    |                    -------- recursive without indirection
10    |
11 help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
12    |
13 LL |     tail: Option<Box<ListNode>>,
14    |                  ++++        +
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0072`.