From 547509e15e5157e900582ecb6bf1d4a3a44a5b44 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Thu, 17 Feb 2022 14:25:43 -0700 Subject: [PATCH] rustdoc: add test cases for hidden enum variants --- src/test/rustdoc/strip-enum-variant.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/test/rustdoc/strip-enum-variant.rs 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, +}