2023-07-10 07:21:25 -05:00
|
|
|
//@ compile-flags: -Z unstable-options --document-hidden-items
|
|
|
|
|
2024-05-21 14:28:30 -05:00
|
|
|
// https://github.com/rust-lang/rust/issues/81141
|
2023-07-10 07:21:25 -05:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
pub use crate::bar::Bar as Alias;
|
|
|
|
|
|
|
|
mod bar {
|
|
|
|
pub struct Bar;
|
|
|
|
}
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has 'foo/fn.bar.html'
|
|
|
|
//@ has - '//*[@class="rust item-decl"]/code' 'pub fn bar() -> Alias'
|
2023-07-10 07:21:25 -05:00
|
|
|
pub fn bar() -> Alias {
|
|
|
|
Alias
|
|
|
|
}
|