Skip to content

Add move keyword for closures to the Reference #36683

Closed
@cbreeden

Description

@cbreeden

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

let mut add_num = move |x: i32| num += x;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions