2022-08-09 09:52:18 -05:00
|
|
|
// https://github.com/rust-lang/rust/issues/100252
|
|
|
|
|
|
|
|
mod bar {
|
2023-11-07 10:56:03 -06:00
|
|
|
// @set baz = "$.index[*][?(@.name == 'Baz')].id"
|
2022-08-09 09:52:18 -05:00
|
|
|
pub struct Baz;
|
2023-11-07 10:56:03 -06:00
|
|
|
// @set impl = "$.index[*][?(@.docs == 'impl')].id"
|
|
|
|
/// impl
|
2022-08-09 09:52:18 -05:00
|
|
|
impl Baz {
|
2023-11-07 10:56:03 -06:00
|
|
|
// @set doit = "$.index[*][?(@.name == 'doit')].id"
|
2022-08-09 09:52:18 -05:00
|
|
|
pub fn doit() {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-22 12:17:52 -05:00
|
|
|
// @set import = "$.index[*][?(@.inner.import)].id"
|
2022-08-09 09:52:18 -05:00
|
|
|
pub use bar::Baz;
|
|
|
|
|
2023-05-22 12:17:52 -05:00
|
|
|
// @is "$.index[*].inner.module.items[*]" $import
|
|
|
|
// @is "$.index[*].inner.import.id" $baz
|
2023-11-07 10:56:03 -06:00
|
|
|
// @has "$.index[*][?(@.name == 'Baz')].inner.struct.impls[*]" $impl
|
|
|
|
// @is "$.index[*][?(@.docs=='impl')].inner.impl.items[*]" $doit
|