File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,10 @@ f(Closure{ left_top: rect.left_top, right_bottom_x: rect.left_top.x });
5757
5858The compiler prefers to capture a value by immutable borrow,
5959followed by unique immutable borrow (see below), by mutable borrow, and finally
60- by move. It will pick the first choice of these that allows the closure to
61- compile. The choice is made only with regards to the contents of the closure
62- expression; the compiler does not take into account surrounding code, such as
63- the lifetimes of involved variables or fields.
64- >>>>>>> 881f305... Update closure types documentation so it includes information about RFC2229
60+ by move. It will pick the first choice of these that is compatible with how the
61+ captured value is used inside the closure body. The compiler does not take
62+ surrounding code into account, such as the lifetimes of involved variables or fields, or
63+ of the closure itself.
6564
6665## Capture Precision
6766
You can’t perform that action at this time.
0 commit comments