summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-3987/format_macro_bodies_false.rs
blob: 1352b762e4509c8ab206f8dc0d96f29b8dd95d79 (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: false

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

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