Skip to content

Commit

Permalink
Rollup merge of rust-lang#113681 - aDotInTheVoid:rdj-priv-supertrait,…
Browse files Browse the repository at this point in the history
… r=GuillaumeGomez

rustdoc-json: Add test for private supertrait.

Helps with rust-lang#81359

r? `@GuillaumeGomez`
  • Loading branch information
matthiaskrgr committed Jul 14, 2023
2 parents 1161c1d + 04dbc7d commit 76e478b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/rustdoc-json/traits/private_supertrait.rs
Original file line number Diff line number Diff line change
@@ -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 {}

0 comments on commit 76e478b

Please sign in to comment.