Skip to content

Commit df5b6d9

Browse files
committed
test(rust-doc-in-enum): Add reproducing example for issue #5662
[1] #5662
1 parent 757e73d commit df5b6d9

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Diff for: tests/target/rust-doc-in-enum/horizontal-no-doc.rs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
enum MyType {
2+
A { field1: bool, field2: bool },
3+
B { field1: bool, field2: bool },
4+
C { field1: bool, field2: bool },
5+
D { field1: bool, field2: bool },
6+
}

Diff for: tests/target/rust-doc-in-enum/horizontal-with-doc.rs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
enum MyType {
2+
A { field1: bool, field2: bool },
3+
B { field1: bool, field2: bool },
4+
/// OMG a comment
5+
C { field1: bool, field2: bool },
6+
D { field1: bool, field2: bool },
7+
}

0 commit comments

Comments
 (0)