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;
}