-
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
Improvement for comparision against fn #59488
Labels
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
Comments
estebank
added
the
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
label
Mar 28, 2019
I'd like to work on this.
|
bors
added a commit
that referenced
this issue
Apr 14, 2019
Improvement for comparision against fn I try to add error message. related: #59488
Is this fixed in #59798? |
Closing, suggestion is implemented on nightly:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(Playground)
Errors:
A much more useful note would be to suggest to the user that a instead of comparing function she should compare result of function evaluation - rustc should suggest that user should add pair of parentheses to call a function ("did you forget the ‘()’ ?").
The text was updated successfully, but these errors were encountered: