Skip to content

Stack closures as arguments still use modes #4518

Closed
@brson

Description

@brson

to pass by value you have to write:

fn finally(&self, +dtor: &fn() -> T) -> T { }

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions