]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/neg_multiply.rs
iterate List by value
[rust.git] / tests / ui / neg_multiply.rs
index 748a2e536098044dd37612780cdcf54655976e78..d4a20ce9db1c843a3419ca44107a1aaf5f52dacd 100644 (file)
@@ -1,8 +1,5 @@
-#![feature(plugin)]
-
-#![plugin(clippy)]
-#![deny(neg_multiply)]
-#![allow(no_effect, unnecessary_operation)]
+#![warn(clippy::neg_multiply)]
+#![allow(clippy::no_effect, clippy::unnecessary_operation)]
 
 use std::ops::Mul;
 
@@ -29,10 +26,8 @@ fn main() {
 
     x * -1;
 
-
     -1 * x;
 
-
     -1 * -1; // should be ok
 
     X * -1; // should be ok