You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/early-late-parameters.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,7 @@ f(&String::new());
132
132
133
133
In this example, we call `foo`'s function item type twice, each time with a borrow of a temporary.
134
134
These two borrows could not possibly have lifetimes that overlap as the temporaries are only alive during the function call, not after.
135
-
The lifetime parameter on `foo` being early bound requires all callers of `f` to provide a borrow with the same lifetime, as this is not possible the borrow checker errors.
135
+
The lifetime parameter on `foo` being early bound requires all callers of `f` to provide a borrow with the same lifetime, else this would not be possible due borrow checker errors.
136
136
137
137
If the lifetime parameter on `foo` was late bound, this would be able to compile as each caller could provide a different lifetime argument for its borrow.
138
138
See the following example, which demonstrates this using the `bar` function defined above:
0 commit comments