File tree 1 file changed +6
-6
lines changed
src/librustc_error_codes/error_codes
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.
7
2
8
3
Erroneous code example:
9
4
@@ -32,6 +27,11 @@ you have three choices:
32
27
* Somehow reclaim the ownership.
33
28
* Implement the ` Copy ` trait on the type.
34
29
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
+
35
35
Examples:
36
36
37
37
```
You can’t perform that action at this time.
0 commit comments