Skip to content

Commit b08b2da

Browse files
ytmimicalebcartwright
authored andcommitted
Add test for issue 3937
Closes 3937 It's unclear which change fixed the `format_code_in_doc_comments=true` issue brought up in this issue, however I'm unable to reproduce the error on the current master. The added test cases should serve to prevent a regression.
1 parent 8a4c058 commit b08b2da

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/target/issue_3937.rs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// rustfmt-format_code_in_doc_comments:true
2+
3+
struct Foo {
4+
// a: i32,
5+
//
6+
// b: i32,
7+
}
8+
9+
struct Foo {
10+
a: i32,
11+
//
12+
// b: i32,
13+
}

0 commit comments

Comments
 (0)