summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/configs/format_macro_matchers/true.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/configs/format_macro_matchers/true.rs')
-rw-r--r--src/tools/rustfmt/tests/target/configs/format_macro_matchers/true.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/configs/format_macro_matchers/true.rs b/src/tools/rustfmt/tests/target/configs/format_macro_matchers/true.rs
new file mode 100644
index 000000000..e113af96f
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/configs/format_macro_matchers/true.rs
@@ -0,0 +1,10 @@
+// rustfmt-format_macro_matchers: true
+
+macro_rules! foo {
+ ($a:ident : $b:ty) => {
+ $a(42): $b;
+ };
+ ($a:ident $b:ident $c:ident) => {
+ $a = $b + $c;
+ };
+}