Skip to content
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

Error message for mistyped enum variant isn't helpful #49192

Closed
sophiajt opened this issue Mar 20, 2018 · 1 comment
Closed

Error message for mistyped enum variant isn't helpful #49192

sophiajt opened this issue Mar 20, 2018 · 1 comment
Assignees
Labels
A-diagnostics Area: Messages for errors, warnings, and lints C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@sophiajt
Copy link
Contributor

Where we would normally put "^^^ did you mean Up" under mistyped names, I noticed that we don't do that for enum variants.

Here's an example I just saw:

image

@GuillaumeGomez
Copy link
Member

Taking a look.

@GuillaumeGomez GuillaumeGomez self-assigned this Mar 20, 2018
@pietroalbini pietroalbini added C-enhancement Category: An issue proposing an enhancement or a PR with one. A-diagnostics Area: Messages for errors, warnings, and lints labels Mar 21, 2018
kennytm added a commit to kennytm/rust that referenced this issue Mar 27, 2018
…E0599, r=cramertj

Propose a variant if it is an enum for E0599

Fixes rust-lang#49192.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

3 participants