summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/issue-81141-private-reexport-in-public-api-hidden.rs
blob: 5053a328bad8c7bb2e3488473d49e6aa33e8a68d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// compile-flags: -Z unstable-options --document-hidden-items

#![crate_name = "foo"]

#[doc(hidden)]
pub use crate::bar::Bar as Alias;

mod bar {
    pub struct Bar;
}

// @has 'foo/fn.bar.html'
// @has - '//*[@class="rust item-decl"]/code' 'pub fn bar() -> Alias'
pub fn bar() -> Alias {
    Alias
}