mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 16:45:37 +00:00
38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
8 lines
128 B
Rust
8 lines
128 B
Rust
#![warn(clippy::modulo_one)]
|
|
#![allow(clippy::no_effect, clippy::unnecessary_operation)]
|
|
|
|
fn main() {
|
|
10 % 1;
|
|
10 % 2;
|
|
}
|