summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-3434/no_entry.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/source/issue-3434/no_entry.rs')
-rw-r--r--src/tools/rustfmt/tests/source/issue-3434/no_entry.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/issue-3434/no_entry.rs b/src/tools/rustfmt/tests/source/issue-3434/no_entry.rs
new file mode 100644
index 000000000..0838829fe
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/issue-3434/no_entry.rs
@@ -0,0 +1,18 @@
+#[rustfmt::skip::macros(another_macro)]
+fn foo() {
+ another_macro!(
+This should be skipped.
+ );
+}
+
+fn bar() {
+ skip_macro_mod!(
+This should be skipped.
+ );
+}
+
+fn baz() {
+ let macro_result1 = no_skip_macro! { <div>
+this should be mangled</div>
+ }.to_string();
+}