]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-json/reexport/in_root_and_mod.rs
Auto merge of #101224 - compiler-errors:rpitit, r=oli-obk
[rust.git] / src / test / rustdoc-json / reexport / in_root_and_mod.rs
1 #![feature(no_core)]
2 #![no_core]
3
4 // @!has "$.index[*][?(@.name=='foo')]"
5 mod foo {
6     // @has "$.index[*][?(@.name=='Foo')]"
7     pub struct Foo;
8 }
9
10 // @has "$.index[*][?(@.kind=='import' && @.inner.source=='foo::Foo')]"
11 pub use foo::Foo;
12
13 pub mod bar {
14     // @has "$.index[*][?(@.kind=='import' && @.inner.source=='crate::foo::Foo')]"
15     pub use crate::foo::Foo;
16 }