about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/rustdoc-json/assoc_type.rs6
1 files changed, 6 insertions, 0 deletions
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<T> 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
+/// <https://github.com/rust-lang/rust/pull/98548#discussion_r908219164>
+pub struct S2;