-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
"Found value name used as type" #7607
Comments
The problem is not just a matter of an error message. I encountered the same error with this example:
Somehow the impl seems to "override" imported struct names? Or at least interact badly with them. Rewriting to |
Adjusting title. |
I'm also getting the error in this context:
I get One way to get around this in my particular case is defining the types outside of the Shape enum.
|
…he current module Followup to RFC 57. Fixes rust-lang#7607 Fixes rust-lang#8767 Fixes rust-lang#12729 Fixes rust-lang#15060
`mut_range_bound` check for immediate break after mutation closes rust-lang#7532 `mut_range_bound` ignores mutation on range bounds that is placed immediately before break. Still warns if the break is not always reachable. changelog: [`mut_range_bound`] ignore range bound mutations before immediate break
Trying to compile:
gives the unhelpful error:
A better error message would be:
Even better would be, if it could recognize the typo:
The text was updated successfully, but these errors were encountered: