2 #[warn(clippy::inconsistent_digit_grouping)]
3 #[deny(clippy::unreadable_literal)]
4 #[allow(unused_variables, clippy::excessive_precision)]
26 let bad = (1_23_456, 1_234_5678, 1234_567, 1_234.5678_f32, 1.234_5678_f32);
32 let _ = 0x100000000_u64;
34 // Test suggestion when fraction has no digits
35 let _: f32 = 1_23_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;