]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/equatable_if_let.fixed
Rollup merge of #92849 - flip1995:clippyup, r=Manishearth
[rust.git] / tests / ui / equatable_if_let.fixed
index ba72cc237b4a58e1b0c51f5470f88273e6f87292..88918d9671e42f6d90037eae22fc8985ab5de651 100644 (file)
@@ -66,4 +66,13 @@ fn main() {
     if g == NotStructuralEq::A {}
     if let Some(NotPartialEq::A) = Some(f) {}
     if Some(g) == Some(NotStructuralEq::A) {}
+
+    macro_rules! m1 {
+        (x) => {
+            "abc"
+        };
+    }
+    if "abc" == m1!(x) {
+        println!("OK");
+    }
 }