-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Mistyping <>
in return value for ()
could have better error message
#18945
Comments
I guess |
This error is much better now:
but still not as helpful as it could be. |
Full current output:
I believe that this ticket is asking for a generic diagnostic check to look code that seems to be setting a type argument on a
|
@estebank I'd like to try and add that extra compile output that you mentioned. |
It's great @jean-lourenco! Make sure you build using |
Better compile error output when using arguments instead of types Following @estebank sugestion on issue rust-lang#18945 (comment)
Better compile error output when using arguments instead of types Following @estebank sugestion on issue rust-lang#18945 (comment)
Better compile error output when using arguments instead of types Following @estebank sugestion on issue rust-lang#18945 (comment)
Is this issue still being worked on? @jean-lourenco @estebank @kennytm |
@colinmarsh19 the lastest suggestion by @estebank in #18945 (comment) was done on #45122. If there're no more comments/suggestions on the issue, I think it's pretty much done. |
Closing as I see very little to improve specific to this, other than the span pointing at |
This errors but doesn't point out the problem very well:
The error:
Better would be:
The text was updated successfully, but these errors were encountered: