]> git.lizzy.rs Git - rust.git/blob - tests/ui/modulo_one.rs
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / modulo_one.rs
1 #![feature(tool_lints)]
2
3 #![warn(clippy::modulo_one)]
4 #![allow(clippy::no_effect, clippy::unnecessary_operation)]
5
6 fn main() {
7     10 % 1;
8     10 % 2;
9 }