11 lines
111 B
Rust
11 lines
111 B
Rust
#![feature(tool_lints)]
|
|
|
|
|
|
#[warn(clippy::double_neg)]
|
|
fn main() {
|
|
let x = 1;
|
|
-x;
|
|
-(-x);
|
|
--x;
|
|
}
|