We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ce3e824 + 6eb7b69 commit 35c24b4Copy full SHA for 35c24b4
src/librustc_mir/error_codes.rs
@@ -1646,7 +1646,14 @@ fn print_fancy_ref(fancy_ref: &FancyNum){
1646
"##,
1647
1648
E0507: r##"
1649
-You tried to move out of a value which was borrowed. Erroneous code example:
+You tried to move out of a value which was borrowed.
1650
+
1651
+This can also happen when using a type implementing `Fn` or `FnMut`, as neither
1652
+allows moving out of them (they usually represent closures which can be called
1653
+more than once). Much of the text following applies equally well to non-`FnOnce`
1654
+closure bodies.
1655
1656
+Erroneous code example:
1657
1658
```compile_fail,E0507
1659
use std::cell::RefCell;
0 commit comments