-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.Category: This is a bug.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
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 threeFn
trait's mirror the ways to capture variables, whenmove
is used, the closures [sic] is represented by theFnOnce
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.
lcnr, rodrimati1992, CryZe and Frizi
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.Category: This is a bug.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.