2023-06-26 09:32:59 -05:00
|
|
|
// This test ensures that a re-export of `#[doc(hidden)]` item inside a private
|
2023-05-30 10:43:56 -05:00
|
|
|
// module will still be displayed (the re-export, not the item).
|
|
|
|
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
mod private_module {
|
|
|
|
#[doc(hidden)]
|
|
|
|
pub struct Public;
|
|
|
|
}
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has 'foo/index.html'
|
|
|
|
//@ has - '//*[@id="reexport.Foo"]/code' 'pub use crate::private_module::Public as Foo;'
|
2023-05-30 10:43:56 -05:00
|
|
|
pub use crate::private_module::Public as Foo;
|
|
|
|
// Glob re-exports with no visible items should not be displayed.
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ count - '//*[@class="item-table"]/li' 1
|
2023-05-30 10:43:56 -05:00
|
|
|
pub use crate::private_module::*;
|