]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/issue-3434/lib.rs
add test for visitor mad from same context
[rust.git] / tests / target / issue-3434 / lib.rs
index 95bc75642f06307751d8c808213845c30bdb291e..2fd7aea21c7582ea8b9cc106fd454edfa3cbce68 100644 (file)
@@ -34,3 +34,24 @@ fn bar() {
         }
     .to_string();
 }
+
+fn visitor_made_from_same_context() {
+    let pair = (
+        || {
+            foo!(<div>
+            this should be mangled</div>
+                        );
+            skip_macro_mod!(<div>
+this should be skipped</div>
+            );
+        },
+        || {
+            foo!(<div>
+            this should be mangled</div>
+                        );
+            skip_macro_mod!(<div>
+this should be skipped</div>
+            );
+        },
+    );
+}