rust/tests/rustdoc/inline_local/private-reexport-in-public-api-hidden-81141.rs
2024-06-24 11:08:41 +02:00

18 lines
353 B
Rust

//@ compile-flags: -Z unstable-options --document-hidden-items
// https://github.com/rust-lang/rust/issues/81141
#![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
}