rust/tests/rustdoc-json/stripped_modules.rs
Alona Enraght-Moony 7ab71c417b tests/rustdoc-json: replace $.index[*][? with $.index[?
Done automatically with VSCode.
2025-03-21 00:48:09 +00:00

19 lines
454 B
Rust

//@ !has "$.index[?(@.name=='no_pub_inner')]"
mod no_pub_inner {
fn priv_inner() {}
}
//@ !has "$.index[?(@.name=='pub_inner_unreachable')]"
mod pub_inner_unreachable {
//@ !has "$.index[?(@.name=='pub_inner_1')]"
pub fn pub_inner_1() {}
}
//@ !has "$.index[?(@.name=='pub_inner_reachable')]"
mod pub_inner_reachable {
//@ has "$.index[?(@.name=='pub_inner_2')]"
pub fn pub_inner_2() {}
}
pub use pub_inner_reachable::pub_inner_2;