]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/trailing_zeros.rs
Auto merge of #68717 - petrochenkov:stabexpat, r=varkor
[rust.git] / tests / ui / trailing_zeros.rs
index 5494e78062813bbb92c99e23157c2f33147d5abf..1cef8c2cfc997dc0a7937dbae6fcdcc7b872a8f7 100644 (file)
@@ -1,10 +1,8 @@
-#![feature(stmt_expr_attributes, tool_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