2021-03-24 15:54:20 +00:00
|
|
|
#![feature(no_core)]
|
|
|
|
#![no_core]
|
|
|
|
|
2022-07-15 17:48:46 +02:00
|
|
|
// @is in_root_and_mod.json "$.index[*][?(@.name=='foo')].kind" \"module\"
|
|
|
|
// @is in_root_and_mod.json "$.index[*][?(@.name=='foo')].inner.is_stripped" "true"
|
2021-03-24 15:54:20 +00:00
|
|
|
mod foo {
|
2022-07-15 17:48:46 +02:00
|
|
|
// @has - "$.index[*][?(@.name=='Foo')]"
|
2021-03-24 15:54:20 +00:00
|
|
|
pub struct Foo;
|
|
|
|
}
|
|
|
|
|
2022-07-15 17:48:46 +02:00
|
|
|
// @has - "$.index[*][?(@.kind=='import' && @.inner.source=='foo::Foo')]"
|
2021-03-24 15:54:20 +00:00
|
|
|
pub use foo::Foo;
|
|
|
|
|
|
|
|
pub mod bar {
|
2022-07-15 17:48:46 +02:00
|
|
|
// @has - "$.index[*][?(@.kind=='import' && @.inner.source=='crate::foo::Foo')]"
|
2021-03-24 15:54:20 +00:00
|
|
|
pub use crate::foo::Foo;
|
|
|
|
}
|