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

//@ !has "$.index[*][?(@.name=='no_pub_inner')]"
2022-07-15 15:48:46 +00:00
mod no_pub_inner {
fn priv_inner() {}
}
//@ !has "$.index[*][?(@.name=='pub_inner_unreachable')]"
2022-07-15 15:48:46 +00:00
mod pub_inner_unreachable {
//@ !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 {
//@ 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;