about summary refs log tree commit diff
path: root/tests/rustdoc/redirect-const.rs
blob: e636a915f300702b5951ecc43cc7a3a2851e9218 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![crate_name="foo"]

pub use hidden::STATIC_FOO;
pub use hidden::CONST_FOO;

mod hidden {
    //@ has foo/hidden/static.STATIC_FOO.html
    //@ has - '//p/a' '../../foo/static.STATIC_FOO.html'
    pub static STATIC_FOO: u64 = 0;
    //@ has foo/hidden/constant.CONST_FOO.html
    //@ has - '//p/a' '../../foo/constant.CONST_FOO.html'
    pub const CONST_FOO: u64 = 0;
}