rust-clippy/tests/ui/modulo_one.rs
2017-10-03 12:07:24 +02:00

9 lines
106 B
Rust

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