rust/tests/rustdoc/redirect-const.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
371 B
Rust
Raw Normal View History

#![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;
}