File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/librustc_error_codes/error_codes Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- You tried to move out of a value which was borrowed.
2-
3- This can also happen when using a type implementing ` Fn ` or ` FnMut ` , as neither
4- allows moving out of them (they usually represent closures which can be called
5- more than once). Much of the text following applies equally well to non-` FnOnce `
6- closure bodies.
1+ A borrowed value was moved out.
72
83Erroneous code example:
94
@@ -32,6 +27,11 @@ you have three choices:
3227* Somehow reclaim the ownership.
3328* Implement the ` Copy ` trait on the type.
3429
30+ This can also happen when using a type implementing ` Fn ` or ` FnMut ` , as neither
31+ allows moving out of them (they usually represent closures which can be called
32+ more than once). Much of the text following applies equally well to non-` FnOnce `
33+ closure bodies.
34+
3535Examples:
3636
3737```
You can’t perform that action at this time.
0 commit comments