Skip to content

Commit 5859b44

Browse files
Add test for --document-hidden-items
1 parent d29afe2 commit 5859b44

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// compile-flags: -Z unstable-options --document-hidden-items
2+
3+
#![crate_name = "foo"]
4+
5+
#[doc(hidden)]
6+
pub use crate::bar::Bar as Alias;
7+
8+
mod bar {
9+
pub struct Bar;
10+
}
11+
12+
// @has 'foo/fn.bar.html'
13+
// @has - '//*[@class="rust item-decl"]/code' 'pub fn bar() -> Alias'
14+
pub fn bar() -> Alias {
15+
Alias
16+
}

0 commit comments

Comments
 (0)