rustdoc-json: Add test for private supertrait.
This commit is contained in:
parent
7d60819bfd
commit
04dbc7da40
15
tests/rustdoc-json/traits/private_supertrait.rs
Normal file
15
tests/rustdoc-json/traits/private_supertrait.rs
Normal file
@ -0,0 +1,15 @@
|
||||
// ignore-tidy-linelength
|
||||
|
||||
#![feature(no_core)]
|
||||
#![no_core]
|
||||
|
||||
|
||||
// @!has "$.index[*][?(@.name == 'sealed')]"
|
||||
mod sealed {
|
||||
// @set sealed_id = "$.index[*][?(@.name=='Sealed')].id"
|
||||
pub trait Sealed {}
|
||||
}
|
||||
|
||||
// @count "$.index[*][?(@.name=='Trait')].inner.trait.bounds[*]" 1
|
||||
// @is "$.index[*][?(@.name=='Trait')].inner.trait.bounds[0].trait_bound.trait.id" $sealed_id
|
||||
pub trait Trait: sealed::Sealed {}
|
Loading…
Reference in New Issue
Block a user