rust/tests/rustdoc/strip-enum-variant.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
368 B
Rust
Raw Normal View History

//@ has strip_enum_variant/enum.MyThing.html
//@ has - '//code' 'Shown'
//@ !has - '//code' 'NotShown'
//@ has - '//code' '// some variants omitted'
2022-04-27 11:05:54 -05:00
// Also check that `NotShown` isn't displayed in the sidebar.
//@ snapshot no-not-shown - '//*[@class="sidebar-elems"]/section/*[@class="block variant"]'
pub enum MyThing {
Shown,
#[doc(hidden)]
NotShown,
}