2022-09-11 14:32:47 -05:00
|
|
|
// @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 {}
|
|
|
|
|
2023-11-07 10:56:03 -06:00
|
|
|
// @has "$.index[*][?(@.name=='Struct')].inner.struct.impls[*]" $impl
|
2023-05-22 12:17:52 -05:00
|
|
|
// @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
|