Add test for reexported hidden item with --document-hidden-items
This commit is contained in:
parent
2db26d3d55
commit
33edea60f0
1 changed files with 10 additions and 0 deletions
10
tests/rustdoc-json/reexport/reexport_of_hidden.rs
Normal file
10
tests/rustdoc-json/reexport/reexport_of_hidden.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
// compile-flags: --document-hidden-items
|
||||
|
||||
// @has "$.index[*].inner[?(@.import.name=='UsedHidden')]"
|
||||
// @has "$.index[*][?(@.name=='Hidden')]"
|
||||
pub mod submodule {
|
||||
#[doc(hidden)]
|
||||
pub struct Hidden {}
|
||||
}
|
||||
|
||||
pub use submodule::Hidden as UsedHidden;
|
Loading…
Add table
Add a link
Reference in a new issue