mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
13 lines
521 B
Rust
13 lines
521 B
Rust
// @set struct = "$.index[*][?(@.name=='Struct')].id"
|
|
pub struct Struct;
|
|
// @set trait = "$.index[*][?(@.name=='Trait')].id"
|
|
pub trait Trait {}
|
|
// @set impl = "$.index[*][?(@.docs=='impl')].id"
|
|
/// impl
|
|
impl Trait for Struct {}
|
|
|
|
// @has "$.index[*][?(@.name=='Struct')].inner.struct.impls[*]" $impl
|
|
// @is "$.index[*][?(@.name=='Trait')].inner.trait.implementations[*]" $impl
|
|
// @is "$.index[*][?(@.docs=='impl')].inner.impl.trait.id" $trait
|
|
// @is "$.index[*][?(@.docs=='impl')].inner.impl.for.resolved_path.id" $struct
|