Skip to content

Commit d803cae

Browse files
Strenghten strip-enum-variant.rs test
1 parent 6092cbb commit d803cae

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<ul><li><a href="#variant.Shown">Shown</a></li></ul>

src/test/rustdoc/strip-enum-variant.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// @has - '//code' 'Shown'
33
// @!has - '//code' 'NotShown'
44
// @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]/ul'
57
pub enum MyThing {
68
Shown,
79
#[doc(hidden)]

0 commit comments

Comments
 (0)