summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/redirect-map.rs
blob: b7f16b64e38508f796cda30c44f284e9cbc4bd18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 {
  () => {}
}