rust/tests/source/issue-3987/format_macro_bodies_true.rs
Yacin Tmimi a7801aac27 Add test for issue 3987
Closes 3987

It's unclear which commit resolved this issue, but it can no longer be
reproduced.
2022-07-28 19:13:10 -05:00

27 lines
414 B
Rust

// 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
),
};
}};
}