Skip to content

RFC: "attempted dynamic environment-capture" is a bad error message #7118

Closed
@bblum

Description

@bblum

I propose replacing it with can't capture dynamic environment in a fn item; use the || { ... } closure form instead

Though, I note from #322 that this error message has been around since the days of rustboot. So maybe somebody has sentimental attachment to it...

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions