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
fn main() { let x: i8 = i8::MAX; matches!(x, -1 | -2 | -3 | -4); let y = -3..5; let v = y.collect::<Vec<_>>(); dbg!(v); }
could warn as ranges can also go negative.
rustc 1.72.0-nightly (5bd28f5ea 2023-06-28) binary: rustc commit-hash: 5bd28f5eac1ba3569bfa8d49ec3f5acbdfdff7a0 commit-date: 2023-06-28 host: x86_64-unknown-linux-gnu release: 1.72.0-nightly LLVM version: 16.0.5
No response
The text was updated successfully, but these errors were encountered:
manual_range_patterns
9058b04
Successfully merging a pull request may close this issue.
Description
could warn as ranges can also go negative.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: