Skip to content

Commit 850511d

Browse files
authored
Rollup merge of #94101 - notriddle:notriddle/strip-test-cases, r=GuillaumeGomez
rustdoc: add test cases for hidden enum variants
2 parents afd6f5c + 547509e commit 850511d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// @has strip_enum_variant/enum.MyThing.html
2+
// @has - '//code' 'Shown'
3+
// @!has - '//code' 'NotShown'
4+
// @has - '//code' '// some variants omitted'
5+
pub enum MyThing {
6+
Shown,
7+
#[doc(hidden)]
8+
NotShown,
9+
}

0 commit comments

Comments
 (0)