2022-08-09 09:52:18 -05:00
|
|
|
// https://github.com/rust-lang/rust/issues/100252
|
|
|
|
|
|
|
|
#![feature(no_core)]
|
|
|
|
#![no_core]
|
|
|
|
|
|
|
|
mod bar {
|
2023-05-22 12:17:52 -05:00
|
|
|
// @set baz = "$.index[*][?(@.inner.struct)].id"
|
2022-08-09 09:52:18 -05:00
|
|
|
pub struct Baz;
|
2023-05-22 12:17:52 -05:00
|
|
|
// @set impl = "$.index[*][?(@.inner.impl)].id"
|
2022-08-09 09:52:18 -05:00
|
|
|
impl Baz {
|
2023-05-22 12:17:52 -05:00
|
|
|
// @set doit = "$.index[*][?(@.inner.function)].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
|
|
|
|
// @is "$.index[*].inner.struct.impls[*]" $impl
|
|
|
|
// @is "$.index[*].inner.impl.items[*]" $doit
|