mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
12 lines
363 B
Rust
12 lines
363 B
Rust
// @has strip_enum_variant/enum.MyThing.html
|
|
// @has - '//code' 'Shown'
|
|
// @!has - '//code' 'NotShown'
|
|
// @has - '//code' '// some variants omitted'
|
|
// Also check that `NotShown` isn't displayed in the sidebar.
|
|
// @snapshot no-not-shown - '//*[@class="sidebar-elems"]/section/*[@class="block"][1]'
|
|
pub enum MyThing {
|
|
Shown,
|
|
#[doc(hidden)]
|
|
NotShown,
|
|
}
|