Rollup merge of #94101 - notriddle:notriddle/strip-test-cases, r=GuillaumeGomez

rustdoc: add test cases for hidden enum variants
This commit is contained in:
Matthias Krüger 2022-03-03 11:02:50 +01:00 committed by GitHub
commit 850511d483
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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