rust/tests/ui/modulo_one.rs

10 lines
106 B
Rust
Raw Normal View History

2017-09-18 12:47:33 +02:00
#![warn(modulo_one)]
#![allow(no_effect, unnecessary_operation)]
fn main() {
2017-02-08 14:58:07 +01:00
10 % 1;
10 % 2;
}