Skip to content

allow mutation of moved upvars #2152

Closed
Closed
@nikomatsakis

Description

@nikomatsakis

Something like this should work:

fn foo() {
    let mut x = [mut ...];
    task::spawn(fn~[move x]() {
        x += [3];
    }):
}

Metadata

Metadata

Assignees

Labels

A-type-systemArea: Type systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions