]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-3987/format_macro_bodies_false.rs
Rollup merge of #106856 - vadorovsky:fix-atomic-annotations, r=joshtriplett
[rust.git] / src / tools / rustfmt / tests / target / issue-3987 / format_macro_bodies_false.rs
1 // rustfmt-format_macro_bodies: false
2
3 // with comments
4 macro_rules! macros {
5     () => {{
6         Struct {
7             field: (
8                 42 + //comment 1
9                 42
10                 //comment 2
11             ),
12         };
13     }};
14 }
15
16 // without comments
17 macro_rules! macros {
18     () => {{
19         Struct {
20             field: (
21                 42 +
22                 42
23             ),
24         };
25     }};
26 }