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
20 // no error, overflows are checked by `overflowing_literals`
40 // No errors for the following items because they are constant expressions
44 struct Baz([i32; 1 + 1]);
48 type Alias = [i32; 1 + 1];
53 let _: [i32; 1 + 1] = [0, 0];
55 let _: [i32; 1 + 1] = {
56 let a: [i32; 1 + 1] = [0, 0];
61 const ASSOC: i32 = 1 + 1;