diff options
Diffstat (limited to 'tests/rustdoc/redirect-map.rs')
-rw-r--r-- | tests/rustdoc/redirect-map.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/rustdoc/redirect-map.rs b/tests/rustdoc/redirect-map.rs new file mode 100644 index 000000000..b7f16b64e --- /dev/null +++ b/tests/rustdoc/redirect-map.rs @@ -0,0 +1,23 @@ +// compile-flags: -Z unstable-options --generate-redirect-map + +#![crate_name = "foo"] + +// @!has foo/private/struct.Quz.html +// @!has foo/hidden/struct.Bar.html +// @has foo/redirect-map.json +pub use private::Quz; +pub use hidden::Bar; + +mod private { + pub struct Quz; +} + +#[doc(hidden)] +pub mod hidden { + pub struct Bar; +} + +#[macro_export] +macro_rules! foo { + () => {} +} |