2018-07-28 17:34:52 +02:00
|
|
|
#![feature(tool_lints)]
|
2017-09-18 12:47:33 +02:00
|
|
|
|
|
|
|
|
2018-07-28 17:34:52 +02:00
|
|
|
#[warn(clippy::double_neg)]
|
2016-06-30 01:00:25 +02:00
|
|
|
fn main() {
|
|
|
|
let x = 1;
|
|
|
|
-x;
|
|
|
|
-(-x);
|
2017-02-08 14:58:07 +01:00
|
|
|
--x;
|
2016-06-30 01:00:25 +02:00
|
|
|
}
|