https://doc.rust-lang.org/std/keyword.move.html states:
move converts any variables captured by reference or mutable reference to owned by value variables. The three Fn trait's mirror the ways to capture variables, when move is used, the closures [sic] is represented by the FnOnce trait.
The second half of the second sentence is plain wrong and causes confusion.
@rustbot modify labels: T-doc, T-libs, C-enhancement. (Is tagging T-doc still reasonable?)
This issue has been assigned to @poliorcetics via this comment.
https://doc.rust-lang.org/std/keyword.move.html states:
The second half of the second sentence is plain wrong and causes confusion.
@rustbot modify labels: T-doc, T-libs, C-enhancement. (Is tagging T-doc still reasonable?)
This issue has been assigned to @poliorcetics via this comment.