We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
let i: u8 = -1
Replacing -1 by 256 gives the following warning:
literal out of range for its type
This could also apply to the code above. Unfortunately even an explicit cast to u8 doesn't remove the second warning.
Note that clang has a related warning:
warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] unsigned int i = -1; ~ ^~
The text was updated successfully, but these errors were encountered:
Duplicate of #5477
Sorry, something went wrong.
not warning on this is a feature
So so.
Auto merge of rust-lang#16313 - Urhengulas:tidy-syntax-docs, r=lnicola
12e7aa3
minor: Remove newline and add dot in syntax docs While reading through the docs I came across these two small typos.
No branches or pull requests
Replacing -1 by 256 gives the following warning:
This could also apply to the code above. Unfortunately even an explicit cast to u8 doesn't remove the second warning.
Note that clang has a related warning:
The text was updated successfully, but these errors were encountered: