1 // This is a regression test for <https://github.com/rust-lang/rust/issues/106373>.
2 // It ensures that the items in the `doc(hidden)` const block don't show up in the
5 // compile-flags: --document-private-items
9 // @has 'foo/index.html'
10 // @count - '//*[@class="item-table"]//a[@class="struct"]' 2
11 // @count - '//*[@class="item-table"]//a[@class="trait"]' 1
12 // @count - '//*[@class="item-table"]//a[@class="macro"]' 0
19 struct ShouldBeHidden;
21 // @has 'foo/struct.Foo.html'
22 // @!has - '//*[@class="code-header"]' 'impl Bar for Foo'
26 struct SHouldAlsoBeHidden;
30 // @has 'foo/struct.Private.html'
31 // @has - '//*[@id="impl-Bar-for-Private"]/*[@class="code-header"]' 'impl Bar for Private'
32 // @has - '//*[@id="method.bar"]/*[@class="code-header"]' 'fn bar(&self)'
33 impl Bar for Private {
37 // @has - '//*[@id="impl-Private"]/*[@class="code-header"]' 'impl Private'
38 // @has - '//*[@id="method.tralala"]/*[@class="code-header"]' 'fn tralala()'