summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/strip-enum-variant.rs
blob: f82ffdfeda58f38bcda89c81997b87712af97bef (plain)
1
2
3
4
5
6
7
8
9
10
11
// @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]/ul'
pub enum MyThing {
    Shown,
    #[doc(hidden)]
    NotShown,
}