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
1 changed files with 9 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue