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 c4a363d

Browse files
authoredDec 2, 2024
Unrolled build for rust-lang#133721
Rollup merge of rust-lang#133721 - aDotInTheVoid:rdj-dyn-link, r=GuillaumeGomez rustdoc-json: Add test for `impl Trait for dyn Trait` Found while investigating rust-lang#133719 Helps with rust-lang#81359 r? `@GuillaumeGomez`
2 parents 32eea2f + b5d73fc commit c4a363d

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+
//@ set t1 = '$.index[*][?(@.name=="T1")].id'
2+
pub trait T1 {}
3+
4+
//@ set t2 = '$.index[*][?(@.name=="T2")].id'
5+
pub trait T2 {}
6+
7+
/// Fun impl
8+
impl T1 for dyn T2 {}
9+
10+
//@ set impl = '$.index[*][?(@.docs=="Fun impl")].id'
11+
//@ is '$.index[*][?(@.name=="T1")].inner.trait.implementations[*]' $impl
12+
//@ is '$.index[*][?(@.name=="T2")].inner.trait.implementations' []
13+
14+
//@ is '$.index[*][?(@.docs=="Fun impl")].inner.impl.trait.id' $t1
15+
//@ is '$.index[*][?(@.docs=="Fun impl")].inner.impl.for.dyn_trait.traits[*].trait.id' $t2

0 commit comments

Comments
 (0)
Failed to load comments.