Skip to content

Commit

Permalink
Add test for issue 3937
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ytmimi authored and calebcartwright committed May 17, 2022
1 parent 8a4c058 commit b08b2da
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/target/issue_3937.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// rustfmt-format_code_in_doc_comments:true

struct Foo {
// a: i32,
//
// b: i32,
}

struct Foo {
a: i32,
//
// b: i32,
}

0 comments on commit b08b2da

Please sign in to comment.