1 #![warn(clippy::integer_arithmetic, clippy::float_arithmetic)]
5 clippy::shadow_unrelated,
7 clippy::unnecessary_operation
16 i / 2; // no error, this is part of the expression in the preceding line
18 -i; // no error, overflows are checked by `overflowing_literals`
36 // No errors for the following items because they are constant expressions
40 struct Baz([i32; 1 + 1]);
44 type Alias = [i32; 1 + 1];
49 let _: [i32; 1 + 1] = [0, 0];
51 let _: [i32; 1 + 1] = {
52 let a: [i32; 1 + 1] = [0, 0];
57 const ASSOC: i32 = 1 + 1;