Strenghten strip-enum-variant.rs test
This commit is contained in:
parent
6092cbb17c
commit
d803caec71
2 changed files with 3 additions and 0 deletions
1
src/test/rustdoc/strip-enum-variant.no-not-shown.html
Normal file
1
src/test/rustdoc/strip-enum-variant.no-not-shown.html
Normal file
|
@ -0,0 +1 @@
|
|||
<ul><li><a href="#variant.Shown">Shown</a></li></ul>
|
|
@ -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)]
|
||||
|
|
Loading…
Add table
Reference in a new issue