rust/tests/ui/modulo_one.rs

8 lines
128 B
Rust
Raw Normal View History

2018-07-28 10:34:52 -05:00
#![warn(clippy::modulo_one)]
#![allow(clippy::no_effect, clippy::unnecessary_operation)]
fn main() {
2017-02-08 07:58:07 -06:00
10 % 1;
10 % 2;
}