]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/trailing_zeros.rs
New upstream version 1.23.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / trailing_zeros.rs
index 40f588cecef2e82a479e62e5f800286aa6e1e2f1..6a7b6b05e7013d1c9586a6e4b60a503c2bd793ad 100644 (file)
@@ -1,5 +1,5 @@
 #![feature(plugin, custom_attribute, stmt_expr_attributes)]
-#![plugin(clippy)]
+
 #![allow(unused_parens)]
 
 fn main() {
@@ -7,4 +7,5 @@ fn main() {
     let _ = #[clippy(author)] (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
 }