3 #![deny(mixed_case_hex_literals)]
4 #![deny(unseparated_literal_suffix)]
5 #![deny(zero_prefixed_literal)]
11 let ok4 = 0xab_cd_i32;
12 let ok5 = 0xAB_CD_u32;
13 let ok5 = 0xAB_CD_isize;
14 let fail1 = 0xabCD; //~ERROR inconsistent casing in hexadecimal literal
15 let fail2 = 0xabCD_u32; //~ERROR inconsistent casing in hexadecimal literal
16 let fail2 = 0xabCD_isize; //~ERROR inconsistent casing in hexadecimal literal
21 let fail3 = 1234i32; //~ERROR integer type suffix should be separated
22 let fail4 = 1234u32; //~ERROR integer type suffix should be separated
23 let fail5 = 1234isize; //~ERROR integer type suffix should be separated
24 let fail6 = 1234usize; //~ERROR integer type suffix should be separated
25 let fail7 = 1.5f32; //~ERROR float type suffix should be separated
30 //~^ERROR decimal constant
31 //~|HELP remove the `0`
34 //~|SUGGESTION = 0o123;