rustdoc-json: Add assoc type ICE regression test

This commit is contained in:
Martin Nordholts 2022-06-26 20:22:04 +02:00
parent 5ffa8f67b7
commit ae4b929c00

View File

@ -0,0 +1,16 @@
// Regression test for <https://github.com/rust-lang/rust/issues/98547>.
// @has assoc_type.json
// @has - "$.index[*][?(@.name=='Trait')]"
// @has - "$.index[*][?(@.name=='AssocType')]"
// @has - "$.index[*][?(@.name=='S')]"
pub trait Trait {
type AssocType;
}
impl<T> Trait for T {
type AssocType = Self;
}
pub struct S;