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