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 @@ -62,11 +62,10 @@ r[type.closure.capture]
6262r[ type.closure.capture.order]
6363The compiler prefers to capture a value by immutable borrow,
6464followed by unique immutable borrow (see below), by mutable borrow, and finally
65- by move. It will pick the first choice of these that allows the closure to
66- compile. The choice is made only with regards to the contents of the closure
67- expression; the compiler does not take into account surrounding code, such as
68- the lifetimes of involved variables or fields.
69- >>>>>>> 881f305... Update closure types documentation so it includes information about RFC2229
65+ by move. It will pick the first choice of these that is compatible with how the
66+ captured value is used inside the closure body. The compiler does not take
67+ surrounding code into account, such as the lifetimes of involved variables or fields, or
68+ of the closure itself.
7069
7170## Capture Precision
7271
You can’t perform that action at this time.
0 commit comments