summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-3987/format_macro_bodies_true.rs
blob: 9af114fbe574d827daf6f89e0d67979e59f903ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// rustfmt-format_macro_bodies: true

// with comments
macro_rules! macros {
    () => {{
        Struct {
            field: (
                42 + //comment 1
                42
                //comment 2
            ),
        };
    }};
}

// without comments
macro_rules! macros {
    () => {{
        Struct {
            field: (
                42 +
                42
            ),
        };
    }};
}