mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-22 23:58:39 +02:00
Remove code markers for compiler message (#402)
Follow up on comment in merged PR #360, working on issue #274
This commit is contained in:
parent
8dd5a78626
commit
cd79cc41a3
@ -38,6 +38,6 @@ the compiler would not compute a fixed size of the struct in memory, it would lo
|
|||||||
* `Box` solves this problem as it has the same size as a regular pointer and just points at the next
|
* `Box` solves this problem as it has the same size as a regular pointer and just points at the next
|
||||||
element of the `List` in the heap.
|
element of the `List` in the heap.
|
||||||
|
|
||||||
* Remove the `Box` in the List definition and show the compiler error. `Recursive with indirection` is a hint you might want to use a Box or reference of some kind, instead of storing a value directly.
|
* Remove the `Box` in the List definition and show the compiler error. "Recursive with indirection" is a hint you might want to use a Box or reference of some kind, instead of storing a value directly.
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user