]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/double_neg.rs
map_unit_fn: rename tests to fixable
[rust.git] / tests / ui / double_neg.rs
index 790ca93728bac6043f026d442fc264d572407aeb..d47dfcb5ba1eab1b8654a2c270700748923a4bee 100644 (file)
@@ -1,10 +1,7 @@
-#![feature(plugin)]
-#![plugin(clippy)]
-
-#[deny(double_neg)]
+#[warn(clippy::double_neg)]
 fn main() {
     let x = 1;
     -x;
     -(-x);
-    --x; //~ERROR: `--x` could be misinterpreted as pre-decrement by C programmers, is usually a no-op
+    --x;
 }