summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-3987/format_macro_bodies_true.rs
blob: 88d57159c859fe11d37584c4c6bbb5a81130c7f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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) };
    }};
}