about summary refs log tree commit diff
path: root/tests/rustdoc-json/reexport/mod_not_included.rs
blob: 59e5fff59c980ab5c25d4aa6f7a1838c06735b81 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Regression test for https://github.com/rust-lang/rust/issues/101103

mod m1 {
    pub fn x() {}
}

pub use m1::x;

//@ has "$.index[?(@.name=='x' && @.inner.function)]"
//@ has "$.index[?(@.inner.use.name=='x')].inner.use.source" '"m1::x"'
//@ !has "$.index[?(@.name=='m1')]"