]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/strip-enum-variant.rs
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / rustdoc / strip-enum-variant.rs
1 // @has strip_enum_variant/enum.MyThing.html
2 // @has - '//code' 'Shown'
3 // @!has - '//code' 'NotShown'
4 // @has - '//code' '// some variants omitted'
5 // Also check that `NotShown` isn't displayed in the sidebar.
6 // @snapshot no-not-shown - '//*[@class="sidebar-elems"]/section/*[@class="block"][1]'
7 pub enum MyThing {
8     Shown,
9     #[doc(hidden)]
10     NotShown,
11 }