2021-12-14 00:49:29 -06:00
|
|
|
//@ compile-flags: --document-private-items
|
2016-11-14 12:24:47 -06:00
|
|
|
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
mod mod1 {
|
2020-09-01 16:12:52 -05:00
|
|
|
extern "C" {
|
2016-11-14 12:24:47 -06:00
|
|
|
pub fn public_fn();
|
|
|
|
fn private_fn();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub use mod1::*;
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has foo/index.html
|
|
|
|
//@ hasraw - "mod1"
|
|
|
|
//@ hasraw - "public_fn"
|
|
|
|
//@ !hasraw - "private_fn"
|
|
|
|
//@ has foo/fn.public_fn.html
|
|
|
|
//@ !has foo/fn.private_fn.html
|
2016-11-14 12:24:47 -06:00
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has foo/mod1/index.html
|
|
|
|
//@ hasraw - "public_fn"
|
|
|
|
//@ hasraw - "private_fn"
|
|
|
|
//@ has foo/mod1/fn.public_fn.html
|
|
|
|
//@ has foo/mod1/fn.private_fn.html
|