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_i16; //
24 let fail21 = 4_i16; //
28 let fail26 = 43E7_f64;
29 let fail27 = 243E17_f32;
30 let fail28 = 241_251_235E723_f64;
31 let ok29 = 42279.911_32;
33 // testing that the suggestion actually fits in its type
34 let fail30 = 127_i8; // should be i8
35 let fail31 = 240_u8; // should be u8
36 let ok32 = 360_8; // doesnt fit in either, should be ignored
37 let fail33 = 0x1234_i16;
38 let fail34 = 0xABCD_u16;
39 let ok35 = 0x12345_16;
40 let fail36 = 0xFFFF_FFFF_FFFF_FFFF_u64; // u64
43 let ok37 = 123_32.123;
46 let _ = 1.123_45E1_f32;
48 let _ = with_span!(1 2_u32);