]> git.lizzy.rs Git - rust.git/blob - tests/ui/large_digit_groups.fixed
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / large_digit_groups.fixed
1 // run-rustfix
2 #![warn(clippy::large_digit_groups)]
3
4 fn main() {
5     macro_rules! mac {
6         () => {
7             0b1_10110_i64
8         };
9     }
10
11     let _good = (
12         0b1011_i64,
13         0o1_234_u32,
14         0x0123_4567,
15         1_2345_6789,
16         1234_f32,
17         1_234.12_f32,
18         1_234.123_f32,
19         1.123_4_f32,
20     );
21     let _bad = (
22         0b11_0110_i64,
23         0xdead_beef_usize,
24         123_456_f32,
25         123_456.12_f32,
26         123_456.123_45_f64,
27         123_456.123_456_f64,
28     );
29     // Ignore literals in macros
30     let _ = mac!();
31 }