rust-clippy/tests/ui/modulo_one.rs
2019-01-08 21:46:39 +01:00

7 lines
128 B
Rust

#![warn(clippy::modulo_one)]
#![allow(clippy::no_effect, clippy::unnecessary_operation)]
fn main() {
10 % 1;
10 % 2;
}