]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/inline_local/glob-extern-document-private-items.rs
Rollup merge of #106648 - Nilstrieb:poly-cleanup, r=compiler-errors
[rust.git] / tests / rustdoc / inline_local / glob-extern-document-private-items.rs
1 // compile-flags: --document-private-items
2
3 #![crate_name = "foo"]
4
5 mod mod1 {
6     extern "C" {
7         pub fn public_fn();
8         fn private_fn();
9     }
10 }
11
12 pub use mod1::*;
13
14 // @has foo/index.html
15 // @hasraw - "mod1"
16 // @hasraw - "public_fn"
17 // @!hasraw - "private_fn"
18 // @has foo/fn.public_fn.html
19 // @!has foo/fn.private_fn.html
20
21 // @has foo/mod1/index.html
22 // @hasraw - "public_fn"
23 // @hasraw - "private_fn"
24 // @has foo/mod1/fn.public_fn.html
25 // @has foo/mod1/fn.private_fn.html