diff options
Diffstat (limited to '')
-rw-r--r-- | src/tools/rustfmt/tests/target/issue-3434/no_entry.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue-3434/no_entry.rs b/src/tools/rustfmt/tests/target/issue-3434/no_entry.rs new file mode 100644 index 000000000..a2ecf2c2f --- /dev/null +++ b/src/tools/rustfmt/tests/target/issue-3434/no_entry.rs @@ -0,0 +1,19 @@ +#[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(); +} |