mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
21 lines
610 B
Rust
21 lines
610 B
Rust
// https://github.com/rust-lang/rust/issues/100252
|
|
|
|
mod bar {
|
|
// @set baz = "$.index[*][?(@.name == 'Baz')].id"
|
|
pub struct Baz;
|
|
// @set impl = "$.index[*][?(@.docs == 'impl')].id"
|
|
/// impl
|
|
impl Baz {
|
|
// @set doit = "$.index[*][?(@.name == 'doit')].id"
|
|
pub fn doit() {}
|
|
}
|
|
}
|
|
|
|
// @set import = "$.index[*][?(@.inner.import)].id"
|
|
pub use bar::Baz;
|
|
|
|
// @is "$.index[*].inner.module.items[*]" $import
|
|
// @is "$.index[*].inner.import.id" $baz
|
|
// @has "$.index[*][?(@.name == 'Baz')].inner.struct.impls[*]" $impl
|
|
// @is "$.index[*][?(@.docs=='impl')].inner.impl.items[*]" $doit
|