File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ fn main() {
32
32
And now I get an error:
33
33
34
34
~~~ {.notrust}
35
- error: mismatched types: expected `&int` but found `<VI0 >` (expected &-ptr but found integral variable)
35
+ error: mismatched types: expected `&int` but found `<generic integer #0 >` (expected &-ptr but found integral variable)
36
36
~~~
37
37
38
38
What gives? It needs a pointer! Therefore I have to use pointers!"
@@ -73,7 +73,7 @@ However.
73
73
Here are the use-cases for pointers. I've prefixed them with the name of the
74
74
pointer that satisfies that use-case:
75
75
76
- 1 . Owned: ~ Trait must be a pointer, because you don't know the size of the
76
+ 1 . Owned: ` Box< Trait> ` must be a pointer, because you don't know the size of the
77
77
object, so indirection is mandatory.
78
78
2 . Owned: You need a recursive data structure. These can be infinite sized, so
79
79
indirection is mandatory.
You can’t perform that action at this time.
0 commit comments