summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-json/reexport/mod_not_included.rs
blob: 7b7600ef20f08b4ec0719558c4d9d20136c8cc88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Regression test for https://github.com/rust-lang/rust/issues/101103

#![feature(no_core)]
#![no_core]

mod m1 {
    pub fn x() {}
}

pub use m1::x;

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