Strenghten strip-enum-variant.rs test

This commit is contained in:
Guillaume Gomez 2022-04-27 18:05:54 +02:00
parent 6092cbb17c
commit d803caec71
2 changed files with 3 additions and 0 deletions

View file

@ -0,0 +1 @@
<ul><li><a href="#variant.Shown">Shown</a></li></ul>

View file

@ -2,6 +2,8 @@
// @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)]