rust/tests/ui/needless_parens_on_range_literals.fixed
2023-08-11 14:02:28 +00:00

14 lines
252 B
Rust

//@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';
}