]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/eq_op.rs
iterate List by value
[rust.git] / tests / ui / eq_op.rs
index e9a685b9c79a962d1597f4984b9bc0ca207a1690..272b0900a31c6dee8c27f8eadf2c5b7e00245083 100644 (file)
@@ -73,6 +73,15 @@ macro_rules! check_if_named_foo {
     )
 }
 
+macro_rules! bool_macro {
+    ($expression:expr) => {
+        true
+    };
+}
+
+#[allow(clippy::short_circuit_statement)]
 fn check_ignore_macro() {
     check_if_named_foo!(foo);
+    // checks if the lint ignores macros with `!` operator
+    !bool_macro!(1) && !bool_macro!("");
 }