]> git.lizzy.rs Git - rust.git/blob - tests/compile-fail/modulo_one.rs
all: make style of lint messages consistent
[rust.git] / tests / compile-fail / modulo_one.rs
1 #![feature(plugin)]
2 #![plugin(clippy)]
3 #![deny(modulo_one)]
4
5 fn main() {
6     10 % 1; //~ERROR any number modulo 1 will be 0
7     10 % 2;
8 }