1 #![warn(clippy::modulo_arithmetic)]
2 #![allow(clippy::no_effect, clippy::unnecessary_operation, clippy::modulo_one)]
5 // Lint on signed integral numbers
18 let mut b_i16: i16 = 2;
23 let mut b_i32: i32 = 2;
28 let mut b_i64: i64 = 2;
33 let mut b_i128: i128 = 2;
37 let a_isize: isize = 1;
38 let mut b_isize: isize = 2;
47 // No lint on unsigned integral value
57 let mut a_u16: u16 = 1;
63 let mut a_u32: u32 = 1;
69 let mut a_u64: u64 = 1;
72 let a_u128: u128 = 17;
75 let mut a_u128: u128 = 1;
78 let a_usize: usize = 17;
79 let b_usize: usize = 3;
81 let mut a_usize: usize = 1;