diff --git a/src/test/rustdoc-json/assoc_type.rs b/src/test/rustdoc-json/assoc_type.rs index b7e985958bc..716bb3d2848 100644 --- a/src/test/rustdoc-json/assoc_type.rs +++ b/src/test/rustdoc-json/assoc_type.rs @@ -4,6 +4,7 @@ // @has - "$.index[*][?(@.name=='Trait')]" // @has - "$.index[*][?(@.name=='AssocType')]" // @has - "$.index[*][?(@.name=='S')]" +// @has - "$.index[*][?(@.name=='S2')]" pub trait Trait { type AssocType; @@ -14,3 +15,8 @@ impl Trait for T { } pub struct S; + +/// Not needed for the #98547 ICE to occur, but added to maximize the chance of +/// getting an ICE in the future. See +/// +pub struct S2;