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.
This commit is contained in:
Yacin Tmimi 2022-03-31 18:15:51 -04:00 committed by Caleb Cartwright
parent 8a4c05865b
commit b08b2daeb6

View File

@ -0,0 +1,13 @@
// rustfmt-format_code_in_doc_comments:true
struct Foo {
// a: i32,
//
// b: i32,
}
struct Foo {
a: i32,
//
// b: i32,
}