2 #[warn(clippy::inconsistent_digit_grouping)]
3 #[deny(clippy::unreadable_literal)]
4 #[allow(unused_variables, clippy::excessive_precision)]
26 let bad = (123_456, 12_345_678, 1_234_567, 1_234.567_8_f32, 1.234_567_8_f32);
32 let _ = 0x0001_0000_0000_u64;
34 // Test suggestion when fraction has no digits
35 let _: f32 = 123_456.;
37 // Test UUID formatted literal
38 let _: u128 = 0x12345678_1234_1234_1234_123456789012;
40 // Ignore literals in macros
45 // Allow separating exponent with '_'
46 let _ = 1.025_011_10_E0;