]>
Commit | Line | Data |
---|---|---|
cc61c64b XL |
1 | error[E0072]: recursive type `ListNode` has infinite size |
2 | --> $DIR/multiline-span-E0072.rs:12:1 | |
3 | | | |
ff7c6d11 | 4 | 12 | / struct //~ ERROR has infinite size |
cc61c64b XL |
5 | 13 | | ListNode |
6 | 14 | | { | |
7 | 15 | | head: u8, | |
8 | 16 | | tail: Option<ListNode>, | |
7cac9316 | 9 | | | ---------------------- recursive without indirection |
cc61c64b XL |
10 | 17 | | } |
11 | | |_^ recursive type has infinite size | |
12 | | | |
13 | = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `ListNode` representable | |
14 | ||
041b39d2 | 15 | error: aborting due to previous error |
cc61c64b | 16 |