Skip to content

Decide on bounds syntax for async closures (RFC 3668) #128129

Open

Description

Prior to stabilization, we need to decide which syntax to use for async closure bounds. This was left as an open question in RFC 3668.

The main known candidates are:

  • F: async FnMut() -> T
  • F: AsyncFnMut() -> T

Other candidates discussed have included:

  • F: async mut fn() -> T
  • F: async mut () -> T
  • F: async mut || -> T
  • F: async fn(&mut self) -> T
  • F: AsyncFn(&mut self) -> T
  • F: async |&mut self| -> T

Tracking:

@rustbot labels +T-lang +I-lang-nominated

cc @compiler-errors @rust-lang/lang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    C-discussionCategory: Discussion or questions that doesn't represent real issues.I-lang-nominatedNominated for discussion during a lang team meeting.T-langRelevant to the language team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions