Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
26
tests/rustdoc-json/traits/supertrait.rs
Normal file
26
tests/rustdoc-json/traits/supertrait.rs
Normal file
|
@ -0,0 +1,26 @@
|
|||
// ignore-tidy-linelength
|
||||
|
||||
#![feature(no_core)]
|
||||
#![feature(lang_items)]
|
||||
#![no_core]
|
||||
|
||||
// @set loud_id = "$.index[*][?(@.name=='Loud')].id"
|
||||
pub trait Loud {}
|
||||
|
||||
// @set very_loud_id = "$.index[*][?(@.name=='VeryLoud')].id"
|
||||
// @count "$.index[*][?(@.name=='VeryLoud')].inner.bounds[*]" 1
|
||||
// @is "$.index[*][?(@.name=='VeryLoud')].inner.bounds[0].trait_bound.trait.id" $loud_id
|
||||
pub trait VeryLoud: Loud {}
|
||||
|
||||
// @set sounds_good_id = "$.index[*][?(@.name=='SoundsGood')].id"
|
||||
pub trait SoundsGood {}
|
||||
|
||||
// @count "$.index[*][?(@.name=='MetalBand')].inner.bounds[*]" 2
|
||||
// @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
|
||||
pub trait MetalBand: VeryLoud + SoundsGood {}
|
||||
|
||||
// @count "$.index[*][?(@.name=='DnabLatem')].inner.bounds[*]" 2
|
||||
// @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
|
||||
pub trait DnabLatem: SoundsGood + VeryLoud {}
|
Loading…
Add table
Add a link
Reference in a new issue