summaryrefslogtreecommitdiff
path: root/src/tools/rustfmt/tests/target/configs/format_macro_bodies/true.rs
blob: 9dc2524c38961504714182aad535fde99de7487c (plain)
1
2
3
4
5
6
7
8
9
10
// rustfmt-format_macro_bodies: true

macro_rules! foo {
    ($a: ident : $b: ty) => {
        $a(42): $b;
    };
    ($a: ident $b: ident $c: ident) => {
        $a = $b + $c;
    };
}