-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusing error message with closures #47774
Comments
cc @estebank |
Just created a PR to address part of the wording. The full fix would be to have the span pointing at the reborrow instead of the closure. Even when changing that, the diagnostic should still point at the current span to provide the context of the closure. The MIR output is slightly better in that we get an error pointing at the reborrow, but it is still not great:
|
Just suggesting changing |
Why was this ticket closed (and locked)? The subpar diagnostics are still being emitted... |
gives
Which is very cryptic and doesn't really show what's going on.
The text was updated successfully, but these errors were encountered: