rustdoc: add test cases for hidden enum variants

This commit is contained in:
Michael Howell 2022-02-17 14:25:43 -07:00
parent 30b3f35c42
commit 547509e15e

View file

@ -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,
}