Skip to content

Commit

Permalink
rustdoc: add test cases for hidden enum variants
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Feb 17, 2022
1 parent 30b3f35 commit 547509e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/rustdoc/strip-enum-variant.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// @has strip_enum_variant/enum.MyThing.html
// @has - '//code' 'Shown'
// @!has - '//code' 'NotShown'
// @has - '//code' '// some variants omitted'
pub enum MyThing {
Shown,
#[doc(hidden)]
NotShown,
}

0 comments on commit 547509e

Please sign in to comment.