diff --git a/src/test/rustdoc/strip-enum-variant.rs b/src/test/rustdoc/strip-enum-variant.rs new file mode 100644 index 0000000000000..12e576100710a --- /dev/null +++ b/src/test/rustdoc/strip-enum-variant.rs @@ -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, +}