Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4bd62f7

Browse files
authoredJul 14, 2023
Rollup merge of rust-lang#113681 - aDotInTheVoid:rdj-priv-supertrait, r=GuillaumeGomez
rustdoc-json: Add test for private supertrait. Helps with rust-lang#81359 r? ``@GuillaumeGomez``
2 parents a42b04c + 04dbc7d commit 4bd62f7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// ignore-tidy-linelength
2+
3+
#![feature(no_core)]
4+
#![no_core]
5+
6+
7+
// @!has "$.index[*][?(@.name == 'sealed')]"
8+
mod sealed {
9+
// @set sealed_id = "$.index[*][?(@.name=='Sealed')].id"
10+
pub trait Sealed {}
11+
}
12+
13+
// @count "$.index[*][?(@.name=='Trait')].inner.trait.bounds[*]" 1
14+
// @is "$.index[*][?(@.name=='Trait')].inner.trait.bounds[0].trait_bound.trait.id" $sealed_id
15+
pub trait Trait: sealed::Sealed {}

0 commit comments

Comments
 (0)
Failed to load comments.