Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add move keyword for closures to the Reference #36683

Closed
cbreeden opened this issue Sep 23, 2016 · 3 comments
Closed

Add move keyword for closures to the Reference #36683

cbreeden opened this issue Sep 23, 2016 · 3 comments

Comments

@cbreeden
Copy link
Contributor

Currently the rust reference doesn't mention the move keyword used in snippets like this:

let mut add_num = move |x: i32| num += x;
@chuck-park
Copy link

https://doc.rust-lang.org/grammar.html#keywords includes move in the list of keywords.

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this issue Oct 7, 2016
Reference: Mention `move` keyword for lambdas

From issue rust-lang#36683
@steveklabnik
Copy link
Member

This has now been fixed, thank you!

@paulie4
Copy link

paulie4 commented Jan 7, 2021

NOTE: the new location for the added move documentation is here:
https://doc.rust-lang.org/reference/expressions/closure-expr.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants