Skip to content

Commit ae4b929

Browse files
committed
rustdoc-json: Add assoc type ICE regression test
1 parent 5ffa8f6 commit ae4b929

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/test/rustdoc-json/assoc_type.rs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Regression test for <https://github.com/rust-lang/rust/issues/98547>.
2+
3+
// @has assoc_type.json
4+
// @has - "$.index[*][?(@.name=='Trait')]"
5+
// @has - "$.index[*][?(@.name=='AssocType')]"
6+
// @has - "$.index[*][?(@.name=='S')]"
7+
8+
pub trait Trait {
9+
type AssocType;
10+
}
11+
12+
impl<T> Trait for T {
13+
type AssocType = Self;
14+
}
15+
16+
pub struct S;

0 commit comments

Comments
 (0)