rust/tests/target/issue-3987/format_macro_bodies_true.rs

22 lines
347 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) };
}};
}