2023-04-20 09:37:15 -05:00
|
|
|
//@run-rustfix
|
|
|
|
//@edition:2018
|
2022-06-03 09:12:26 -05:00
|
|
|
|
2022-06-05 15:12:30 -05:00
|
|
|
#![warn(clippy::needless_parens_on_range_literals)]
|
2022-12-09 12:29:50 -06:00
|
|
|
#![allow(clippy::almost_complete_range)]
|
2022-06-03 09:12:26 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = ('a')..=('z');
|
2022-06-04 15:01:52 -05:00
|
|
|
let _ = 'a'..('z');
|
2022-06-04 14:44:37 -05:00
|
|
|
let _ = (1.)..2.;
|
|
|
|
let _ = (1.)..(2.);
|
2022-06-04 15:01:52 -05:00
|
|
|
let _ = ('a')..;
|
|
|
|
let _ = ..('z');
|
2022-06-03 09:12:26 -05:00
|
|
|
}
|