mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Add test for reexported hidden item with --document-hidden-items
This commit is contained in:
parent
2db26d3d55
commit
33edea60f0
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…
Reference in New Issue
Block a user