rust-clippy/tests/ui/double_neg.rs
2018-08-29 11:08:29 -07:00

10 lines
111 B
Rust

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