RFC: "attempted dynamic environment-capture" is a bad error message #7118
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
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...
The text was updated successfully, but these errors were encountered: