]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/multiline-span-E0072.stderr
acfc60b51f330892710429c476ccfbc1ba26f27e
[rust.git] / src / test / 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 LL | | {
7 LL | |     head: u8,
8 LL | |     tail: Option<ListNode>,
9    | |           ---------------- recursive without indirection
10 LL | | }
11    | |_^ recursive type has infinite size
12    |
13 help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `ListNode` representable
14    |
15 LL |     tail: Option<Box<ListNode>>,
16    |                  ++++        +
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0072`.