rust-clippy/tests/ui/needless_parens_on_range_literal.rs

13 lines
242 B
Rust
Raw Normal View History

// run-rustfix
// edition:2018
2022-06-04 17:37:28 +00:00
#![warn(clippy::needless_parens_on_range_literal)]
#![allow(clippy::almost_complete_letter_range)]
fn main() {
let _ = ('a')..=('z');
let _ = 'a'..='z';
let _ = (1.)..2.;
let _ = (1.)..(2.);
}