]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/trailing_zeros.rs
iterate List by value
[rust.git] / tests / ui / trailing_zeros.rs
index 6a7b6b05e7013d1c9586a6e4b60a503c2bd793ad..1cef8c2cfc997dc0a7937dbae6fcdcc7b872a8f7 100644 (file)
@@ -1,10 +1,8 @@
-#![feature(plugin, custom_attribute, stmt_expr_attributes)]
-
 #![allow(unused_parens)]
 
 fn main() {
     let x: i32 = 42;
-    let _ = #[clippy(author)] (x & 0b1111 == 0);  // suggest trailing_zeros
+    let _ = (x & 0b1111 == 0); // suggest trailing_zeros
     let _ = x & 0b1_1111 == 0; // suggest trailing_zeros
     let _ = x & 0b1_1010 == 0; // do not lint
     let _ = x & 1 == 0; // do not lint