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