]> 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 6a7b6b05e7013d1c9586a6e4b60a503c2bd793ad..fbdc977b769a413587a80c87dd8393c1116fe8fd 100644 (file)
@@ -1,10 +1,9 @@
-#![feature(plugin, custom_attribute, stmt_expr_attributes)]
-
 #![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