We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01ab4f7 commit a297651Copy full SHA for a297651
src/librustc_typeck/diagnostics.rs
@@ -495,11 +495,9 @@ struct ListNode {
495
This type cannot have a well-defined size, because it needs to be arbitrarily
496
large (since we would be able to nest `ListNode`s to any depth). Specifically,
497
498
-```
499
-size of ListNode = 1 byte for head
500
- + 1 byte for the discriminant of the Option
501
- + size of ListNode
502
+ size of `ListNode` = 1 byte for `head`
+ + 1 byte for the discriminant of the `Option`
+ + size of `ListNode`
503
504
One way to fix this is by wrapping `ListNode` in a `Box`, like so:
505
0 commit comments