2021-03-24 15:54:20 +00:00
|
|
|
pub mod foo {
|
2022-08-17 12:55:09 +02:00
|
|
|
// @set bar_id = "$.index[*][?(@.name=='Bar')].id"
|
2023-05-22 18:17:52 +01:00
|
|
|
// @ismany "$.index[*][?(@.name=='foo')].inner.module.items[*]" $bar_id
|
2021-03-24 15:54:20 +00:00
|
|
|
pub struct Bar;
|
|
|
|
}
|
|
|
|
|
2023-05-22 18:17:52 +01:00
|
|
|
// @set root_import_id = "$.index[*][?(@.docs=='Outer re-export')].id"
|
|
|
|
// @is "$.index[*].inner[?(@.import.source=='foo::Bar')].import.id" $bar_id
|
|
|
|
// @has "$.index[*][?(@.name=='in_root_and_mod_pub')].inner.module.items[*]" $root_import_id
|
|
|
|
/// Outer re-export
|
2021-03-24 15:54:20 +00:00
|
|
|
pub use foo::Bar;
|
|
|
|
|
|
|
|
pub mod baz {
|
2023-05-22 18:17:52 +01:00
|
|
|
// @set baz_import_id = "$.index[*][?(@.docs=='Inner re-export')].id"
|
|
|
|
// @is "$.index[*].inner[?(@.import.source=='crate::foo::Bar')].import.id" $bar_id
|
|
|
|
// @ismany "$.index[*][?(@.name=='baz')].inner.module.items[*]" $baz_import_id
|
|
|
|
/// Inner re-export
|
2021-03-24 15:54:20 +00:00
|
|
|
pub use crate::foo::Bar;
|
|
|
|
}
|