Skip to content

Commit

Permalink
test(rust-doc-in-enum): Add reproducing example for issue #5662
Browse files Browse the repository at this point in the history
[1] #5662
  • Loading branch information
malikolivier committed Aug 18, 2024
1 parent 757e73d commit df5b6d9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/target/rust-doc-in-enum/horizontal-no-doc.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
enum MyType {
A { field1: bool, field2: bool },
B { field1: bool, field2: bool },
C { field1: bool, field2: bool },
D { field1: bool, field2: bool },
}
7 changes: 7 additions & 0 deletions tests/target/rust-doc-in-enum/horizontal-with-doc.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
enum MyType {
A { field1: bool, field2: bool },
B { field1: bool, field2: bool },
/// OMG a comment
C { field1: bool, field2: bool },
D { field1: bool, field2: bool },
}

0 comments on commit df5b6d9

Please sign in to comment.