mirror of
https://github.com/rust-lang/rust
synced 2024-09-20 17:02:37 +00:00
rustdoc: add test cases for hidden enum variants
This commit is contained in:
parent
30b3f35c42
commit
547509e15e
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 a new issue