rust/tests/ui/needless_parens_on_range_literals.rs
Hannah Town 4c80f210c3 Add lint almost_complete_range
This replaces and expands `almost_complete_letter_range`.
2022-12-09 13:29:50 -05:00

15 lines
279 B
Rust

// run-rustfix
// edition:2018
#![warn(clippy::needless_parens_on_range_literals)]
#![allow(clippy::almost_complete_range)]
fn main() {
let _ = ('a')..=('z');
let _ = 'a'..('z');
let _ = (1.)..2.;
let _ = (1.)..(2.);
let _ = ('a')..;
let _ = ..('z');
}