mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
Rollup merge of #94101 - notriddle:notriddle/strip-test-cases, r=GuillaumeGomez
rustdoc: add test cases for hidden enum variants
This commit is contained in:
@@ -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,
|
||||
}
|
||||
Reference in New Issue
Block a user