2022-02-20 22:51:05 +00:00
|
|
|
// ignore-tidy-linelength
|
|
|
|
|
|
|
|
#![feature(no_core)]
|
|
|
|
#![feature(lang_items)]
|
|
|
|
#![no_core]
|
|
|
|
|
|
|
|
// @set loud_id = supertrait.json "$.index[*][?(@.name=='Loud')].id"
|
|
|
|
pub trait Loud {}
|
|
|
|
|
|
|
|
// @set very_loud_id = - "$.index[*][?(@.name=='VeryLoud')].id"
|
|
|
|
// @count - "$.index[*][?(@.name=='VeryLoud')].inner.bounds[*]" 1
|
2022-08-09 17:41:42 +00:00
|
|
|
// @is - "$.index[*][?(@.name=='VeryLoud')].inner.bounds[0].trait_bound.trait.id" $loud_id
|
2022-02-20 22:51:05 +00:00
|
|
|
pub trait VeryLoud: Loud {}
|
|
|
|
|
|
|
|
// @set sounds_good_id = - "$.index[*][?(@.name=='SoundsGood')].id"
|
|
|
|
pub trait SoundsGood {}
|
|
|
|
|
|
|
|
// @count - "$.index[*][?(@.name=='MetalBand')].inner.bounds[*]" 2
|
2022-08-09 17:41:42 +00:00
|
|
|
// @is - "$.index[*][?(@.name=='MetalBand')].inner.bounds[0].trait_bound.trait.id" $very_loud_id
|
|
|
|
// @is - "$.index[*][?(@.name=='MetalBand')].inner.bounds[1].trait_bound.trait.id" $sounds_good_id
|
2022-02-20 22:51:05 +00:00
|
|
|
pub trait MetalBand: VeryLoud + SoundsGood {}
|
|
|
|
|
|
|
|
// @count - "$.index[*][?(@.name=='DnabLatem')].inner.bounds[*]" 2
|
2022-08-09 17:41:42 +00:00
|
|
|
// @is - "$.index[*][?(@.name=='DnabLatem')].inner.bounds[1].trait_bound.trait.id" $very_loud_id
|
|
|
|
// @is - "$.index[*][?(@.name=='DnabLatem')].inner.bounds[0].trait_bound.trait.id" $sounds_good_id
|
2022-02-20 22:51:05 +00:00
|
|
|
pub trait DnabLatem: SoundsGood + VeryLoud {}
|