]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-json/reexport/mod_not_included.rs
Auto merge of #101224 - compiler-errors:rpitit, r=oli-obk
[rust.git] / src / test / rustdoc-json / reexport / mod_not_included.rs
1 // Regression test for https://github.com/rust-lang/rust/issues/101103
2
3 #![feature(no_core)]
4 #![no_core]
5
6 mod m1 {
7     pub fn x() {}
8 }
9
10 pub use m1::x;
11
12 // @has "$.index[*][?(@.name=='x' && @.kind=='function')]"
13 // @has "$.index[*][?(@.kind=='import' && @.inner.name=='x')].inner.source" '"m1::x"'
14 // @!has "$.index[*][?(@.name=='m1')]"