fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
532 B17 linesraw
1error[E0072]: recursive type `ListNode` has infinite size
2  --> $DIR/multiline-span-E0072.rs:2:1
3   |
4LL | / struct
5LL | | ListNode
6LL | | {
7LL | |     head: u8,
8LL | |     tail: Option<ListNode>,
9   | |     ---------------------- recursive without indirection
10LL | | }
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
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0072`.