]> git.lizzy.rs Git - rust.git/blob - tests/ui/modulo_one.rs
rustup and compile-fail -> ui test move
[rust.git] / tests / ui / modulo_one.rs
1 #![feature(plugin)]
2 #![plugin(clippy)]
3 #![deny(modulo_one)]
4 #![allow(no_effect, unnecessary_operation)]
5
6 fn main() {
7     10 % 1; //~ERROR any number modulo 1 will be 0
8     10 % 2;
9 }