diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-03-03 11:02:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-03 11:02:50 +0100 |
| commit | 850511d483a730ea10f77df5cbf2367ae33f93ce (patch) | |
| tree | aa9ef3cef2ef48fdf861edf5e75235333c81b73f | |
| parent | afd6f5c47808c7676014e88d0fda82e95c3a9da0 (diff) | |
| parent | 547509e15e5157e900582ecb6bf1d4a3a44a5b44 (diff) | |
| download | rust-850511d483a730ea10f77df5cbf2367ae33f93ce.tar.gz rust-850511d483a730ea10f77df5cbf2367ae33f93ce.zip | |
Rollup merge of #94101 - notriddle:notriddle/strip-test-cases, r=GuillaumeGomez
rustdoc: add test cases for hidden enum variants
| -rw-r--r-- | src/test/rustdoc/strip-enum-variant.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/rustdoc/strip-enum-variant.rs b/src/test/rustdoc/strip-enum-variant.rs new file mode 100644 index 00000000000..12e57610071 --- /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, +} |
