Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
src
/
tools
/
clippy
/
tests
/
ui-toml
/
modulo_arithmetic
/
modulo_arithmetic.rs
blob: 27d27564baf34c3966db1d9ef636a6104b530276 [
file
] [
log
] [
blame
]
#![
warn
(
clippy
::
modulo_arithmetic
)]
fn
main
()
{
let
a
=
-
1
;
let
b
=
2
;
let
c
=
a
%
b
==
0
;
let
c
=
a
%
b
!=
0
;
let
c
=
0
==
a
%
b
;
let
c
=
0
!=
a
%
b
;
}