]> git.lizzy.rs Git - rust.git/blob - tests/ui/large_digit_groups.rs
Auto merge of #4314 - chansuke:add-negation-to-is_empty, r=flip1995
[rust.git] / tests / ui / large_digit_groups.rs
1 // run-rustfix
2 #[warn(clippy::large_digit_groups)]
3 #[allow(unused_variables)]
4 fn main() {
5     let good = (
6         0b1011_i64,
7         0o1_234_u32,
8         0x1_234_567,
9         1_2345_6789,
10         1234_f32,
11         1_234.12_f32,
12         1_234.123_f32,
13         1.123_4_f32,
14     );
15     let bad = (
16         0b1_10110_i64,
17         0x1_23456_78901_usize,
18         1_23456_f32,
19         1_23456.12_f32,
20         1_23456.12345_f64,
21         1_23456.12345_6_f64,
22     );
23 }