rust/tests/rustdoc/redirect-const.rs
2023-01-11 09:32:08 +00:00

14 lines
371 B
Rust

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