about summary refs log tree commit diff
path: root/tests/rustdoc/inline_local/private-reexport-in-public-api-81141-2.rs
blob: 9dcdc6a0f34c06e168e2a42c5680f09bb43f713f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ 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 }
}