blob: 7e42f095cbbaf32f5eda3767a49e9011370a4193 [file] [log] [blame] [edit]
#![warn(clippy::modulo_arithmetic)]
fn main() {
let a = -1;
let b = 2;
let c = a % b == 0;
//~^ modulo_arithmetic
let c = a % b != 0;
//~^ modulo_arithmetic
let c = 0 == a % b;
//~^ modulo_arithmetic
let c = 0 != a % b;
//~^ modulo_arithmetic
}