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

15 lines
337 B
Rust

//@ edition:2015
// https://github.com/rust-lang/rust/issues/81141
#![crate_name = "foo"]
use external::Public as Private;
pub mod external {
pub struct Public;
//@ has 'foo/external/fn.make.html'
//@ has - '//*[@class="rust item-decl"]/code' 'pub fn make() -> Public'
pub fn make() -> ::Private { super::Private }
}