Nixon Enraght-Moony 2021-03-24 19:44:23 +00:00
parent 9ba92972ed
commit d9e2d8d665

View File

@ -7,14 +7,14 @@ pub mod foo {
pub struct Bar;
}
// @set root_import_id = - "$.index[*][?(@.inner.span=='foo::Bar')].id"
// @is - "$.index[*][?(@.inner.span=='foo::Bar')].inner.id" $bar_id
// @set root_import_id = - "$.index[*][?(@.inner.source=='foo::Bar')].id"
// @is - "$.index[*][?(@.inner.source=='foo::Bar')].inner.id" $bar_id
// @has - "$.index[*][?(@.name=='in_root_and_mod_pub')].inner.items[*]" $root_import_id
pub use foo::Bar;
pub mod baz {
// @set baz_import_id = - "$.index[*][?(@.inner.span=='crate::foo::Bar')].id"
// @is - "$.index[*][?(@.inner.span=='crate::foo::Bar')].inner.id" $bar_id
// @set baz_import_id = - "$.index[*][?(@.inner.source=='crate::foo::Bar')].id"
// @is - "$.index[*][?(@.inner.source=='crate::foo::Bar')].inner.id" $bar_id
// @has - "$.index[*][?(@.name=='baz')].inner.items[*]" $baz_import_id
pub use crate::foo::Bar;
}