mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00

The rustdoc-json test syntax often requires very long lines, so the checks for long lines aren't really useful.
10 lines
345 B
Rust
10 lines
345 B
Rust
//@ !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 {}
|