rust/tests/rustdoc-json/stripped_modules.rs

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

19 lines
469 B
Rust
Raw Normal View History

2022-08-17 05:55:09 -05:00
// @!has "$.index[*][?(@.name=='no_pub_inner')]"
2022-07-15 10:48:46 -05:00
mod no_pub_inner {
fn priv_inner() {}
}
2022-08-17 05:55:09 -05:00
// @!has "$.index[*][?(@.name=='pub_inner_unreachable')]"
2022-07-15 10:48:46 -05:00
mod pub_inner_unreachable {
2022-08-17 05:55:09 -05:00
// @!has "$.index[*][?(@.name=='pub_inner_1')]"
2022-07-15 10:48:46 -05:00
pub fn pub_inner_1() {}
}
// @!has "$.index[*][?(@.name=='pub_inner_reachable')]"
2022-07-15 10:48:46 -05:00
mod pub_inner_reachable {
2022-08-17 05:55:09 -05:00
// @has "$.index[*][?(@.name=='pub_inner_2')]"
2022-07-15 10:48:46 -05:00
pub fn pub_inner_2() {}
}
pub use pub_inner_reachable::pub_inner_2;