]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/trailing_zeros.rs
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / trailing_zeros.rs
index 40f588cecef2e82a479e62e5f800286aa6e1e2f1..fbdc977b769a413587a80c87dd8393c1116fe8fd 100644 (file)
@@ -1,10 +1,10 @@
-#![feature(plugin, custom_attribute, stmt_expr_attributes)]
-#![plugin(clippy)]
 #![allow(unused_parens)]
+#![warn(clippy::verbose_bit_mask)]
 
 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
 }