Sign in
rust
/
rust
/
97b1c314892ef4497c0ce5656daa3a54c4e052d3
/
.
/
src
/
tools
/
clippy
/
tests
/
ui-toml
/
modulo_arithmetic
/
modulo_arithmetic.rs
blob: 7e42f095cbbaf32f5eda3767a49e9011370a4193 [
file
]
#![
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
}