Skip to content

Stack closures as arguments still use modes #4518

Description

@brson

to pass by value you have to write:

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

Activity

  1. catamorphism commented on Mar 1, 2013

    @catamorphism
    Contributor

    I think this is fixed, given 6b6d15a

  2. added 2 commits that reference this issue on Aug 19, 2025
  3. added 2 commits that reference this issue on Nov 8, 2025
  4. added a commit that references this issue on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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