]> git.proxmox.com Git - rustc.git/blob - tests/ui/span/multiline-span-E0072.stderr
New upstream version 1.76.0+dfsg1
[rustc.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 1 previous error
17
18 For more information about this error, try `rustc --explain E0072`.