Skip to content

Commit

Permalink
Add test case for issue 5997
Browse files Browse the repository at this point in the history
  • Loading branch information
ytmimi committed Dec 29, 2023
1 parent 09dbeda commit 7894f70
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/source/issue_5997.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// rustfmt-version: Two

// This formats with two spaces:
pub struct Newtype(
/// Doc
#[doc()] //
pub Vec<u8>,
);

// This formats with one:
pub struct Newtype(
/// Doc
#[doc()]
pub Vec<u8>,
);
15 changes: 15 additions & 0 deletions tests/target/issue_5997.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// rustfmt-version: Two

// This formats with two spaces:
pub struct Newtype(
/// Doc
#[doc()] //
pub Vec<u8>,
);

// This formats with one:
pub struct Newtype(
/// Doc
#[doc()]
pub Vec<u8>,
);

0 comments on commit 7894f70

Please sign in to comment.