rust/tests/rustdoc/issue-81141-private-reexport-in-public-api-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
287 B
Rust
Raw Normal View History

2023-07-07 15:55:33 +00:00
//@ edition:2015
#![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 }
}