Skip to content

Can't spawn a temporary closure #922

Closed
@brson

Description

@brson

This doesn't valgrind:

fn f() {
}

fn main() {
    task::spawn(bind f());
}

This does:

fn f() {
}

fn main() {
    let g = f;
    task::spawn(g);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions