2 // aux-build: proc_macro_with_span.rs
8 clippy::excessive_precision,
9 clippy::inconsistent_digit_grouping,
10 clippy::unusual_byte_groupings
13 extern crate proc_macro_with_span;
14 use proc_macro_with_span::with_span;
20 let fail17 = 23_16; //
24 let fail21 = 4___16; //
29 let fail27 = 243E17_32;
30 let fail28 = 241251235E723_64;
31 let ok29 = 42279.911_32;
33 // testing that the suggestion actually fits in its type
34 let fail30 = 127_8; // should be i8
35 let fail31 = 240_8; // should be u8
36 let ok32 = 360_8; // doesnt fit in either, should be ignored
37 let fail33 = 0x1234_16;
38 let fail34 = 0xABCD_16;
39 let ok35 = 0x12345_16;
40 let fail36 = 0xFFFF_FFFF_FFFF_FFFF_64; // u64
43 let ok37 = 123_32.123;
48 let _ = with_span!(1 2_u32);