-
Notifications
You must be signed in to change notification settings - Fork 13.3k
More clearly Error Message: Calculating with different types #34698
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
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
Comments
cc @nikomatsakis - who was thinking about better type error reporting |
bors
added a commit
that referenced
this issue
Apr 10, 2017
Explicit help message for binop type mismatch When trying to do `1 + Some(2)`, or some other binary operation on two types different types without an appropriate trait implementation, provide an explicit help message: ```rust help: `{integer} + std::option::Option<{integer}>` has no implementation ``` Re: #39579, #38564, #37626, #39942, #34698.
Fixed today, I think. We don't give a suggestion as to
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This yields with rust 1.9
let result = -0.25 % 2;
following error message:
This is the fix:
let result = -0.25 % 2.0;
This is a really compilicated error message for the fact, that calucating with different types are not allowed.
The text was updated successfully, but these errors were encountered: