summaryrefslogtreecommitdiff
path: root/src/tools/rustfmt/tests/target/configs/format_macro_matchers/true.rs
blob: e113af96f26bea34e30f44add1d0991807b67471 (plain)
1
2
3
4
5
6
7
8
9
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;
    };
}