2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2025-03-01 05:47:25 +00:00
rust-clippy/tests/ui/double_neg.rs
2019-01-08 21:46:39 +01:00

7 lines
85 B
Rust

#[warn(clippy::double_neg)]
fn main() {
let x = 1;
-x;
-(-x);
--x;
}