Add tests for issue 2534

Closes 2534

The behavior described in the original issue can no longer be
reproduced. The tests show that to be the case regardless of if
`format_macro_matchers` is `true` or `false`.
This commit is contained in:
Yacin Tmimi 2022-07-19 00:37:32 -04:00 committed by Caleb Cartwright
parent 05332b8c50
commit f2c31ba04d
2 changed files with 12 additions and 0 deletions

@ -0,0 +1,6 @@
// rustfmt-format_macro_matchers: false
macro_rules! foo {
($a:ident : $b:ty) => {};
($a:ident $b:ident $c:ident) => {};
}

@ -0,0 +1,6 @@
// rustfmt-format_macro_matchers: true
macro_rules! foo {
($a:ident : $b:ty) => {};
($a:ident $b:ident $c:ident) => {};
}