mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
17 lines
303 B
Rust
17 lines
303 B
Rust
//@ compile-flags: -Z unstable-options --document-hidden-items
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
#[doc(hidden)]
|
|
pub use crate::bar::Bar as Alias;
|
|
|
|
mod bar {
|
|
pub struct Bar;
|
|
}
|
|
|
|
// @has 'foo/fn.bar.html'
|
|
// @has - '//*[@class="rust item-decl"]/code' 'pub fn bar() -> Alias'
|
|
pub fn bar() -> Alias {
|
|
Alias
|
|
}
|