Rollup merge of #94101 - notriddle:notriddle/strip-test-cases, r=GuillaumeGomez
rustdoc: add test cases for hidden enum variants
This commit is contained in:
commit
850511d483
9
src/test/rustdoc/strip-enum-variant.rs
Normal file
9
src/test/rustdoc/strip-enum-variant.rs
Normal 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,
|
||||
}
|
Loading…
Reference in New Issue
Block a user