2023-07-14 01:54:40 -05:00
|
|
|
// ignore-tidy-linelength
|
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ !has "$.index[*][?(@.name == 'sealed')]"
|
2023-07-14 01:54:40 -05:00
|
|
|
mod sealed {
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ set sealed_id = "$.index[*][?(@.name=='Sealed')].id"
|
2023-07-14 01:54:40 -05:00
|
|
|
pub trait Sealed {}
|
|
|
|
}
|
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ count "$.index[*][?(@.name=='Trait')].inner.trait.bounds[*]" 1
|
|
|
|
//@ is "$.index[*][?(@.name=='Trait')].inner.trait.bounds[0].trait_bound.trait.id" $sealed_id
|
2023-07-14 01:54:40 -05:00
|
|
|
pub trait Trait: sealed::Sealed {}
|