]>
Commit | Line | Data |
---|---|---|
cc61c64b | 1 | error[E0072]: recursive type `ListNode` has infinite size |
0731742a | 2 | --> $DIR/multiline-span-E0072.rs:2:1 |
cc61c64b | 3 | | |
532ac7d7 | 4 | LL | / struct |
0531ce1d XL |
5 | LL | | ListNode |
6 | LL | | { | |
7 | LL | | head: u8, | |
8 | LL | | tail: Option<ListNode>, | |
f035d41b | 9 | | | ---------------- recursive without indirection |
0531ce1d | 10 | LL | | } |
cc61c64b XL |
11 | | |_^ recursive type has infinite size |
12 | | | |
f035d41b XL |
13 | help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `ListNode` representable |
14 | | | |
ee023bcb FG |
15 | LL | tail: Option<Box<ListNode>>, |
16 | | ++++ + | |
cc61c64b | 17 | |
041b39d2 | 18 | error: aborting due to previous error |
cc61c64b | 19 | |
0531ce1d | 20 | For more information about this error, try `rustc --explain E0072`. |