rust/tests/rustdoc-json/stripped_modules.rs

19 lines
469 B
Rust
Raw Normal View History

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