Closed
Description
From: src/test/compile-fail/E0072.rs
Error E0072 needs a span_label, updating it from:
error[E0072]: recursive type `ListNode` has infinite size
--> src/test/compile-fail/E0072.rs:11:1
|
11 | struct ListNode { //~ ERROR E0072
| ^
|
= help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `ListNode` representable
error: aborting due to previous error
To:
error[E0072]: recursive type `ListNode` has infinite size
--> src/test/compile-fail/E0072.rs:11:1
|
11 | struct ListNode { //~ ERROR E0072
| ^ recursive type has infinite size
|
= help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `ListNode` representable
error: aborting due to previous error
Bonus: put the span on the name of the struct:
error[E0072]: recursive type `ListNode` has infinite size
--> src/test/compile-fail/E0072.rs:11:1
|
11 | struct ListNode { //~ ERROR E0072
| ^^^^^^^^ recursive type has infinite size
|
= help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `ListNode` representable
error: aborting due to previous error
Metadata
Metadata
Assignees
Labels
No labels