Skip to content

Commit 2888e76

Browse files
committed
test/rustdoc-json/assoc_type.rs: Maximize chance of detecting future ICEs
1 parent ae4b929 commit 2888e76

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/rustdoc-json/assoc_type.rs

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// @has - "$.index[*][?(@.name=='Trait')]"
55
// @has - "$.index[*][?(@.name=='AssocType')]"
66
// @has - "$.index[*][?(@.name=='S')]"
7+
// @has - "$.index[*][?(@.name=='S2')]"
78

89
pub trait Trait {
910
type AssocType;
@@ -14,3 +15,8 @@ impl<T> Trait for T {
1415
}
1516

1617
pub struct S;
18+
19+
/// Not needed for the #98547 ICE to occur, but added to maximize the chance of
20+
/// getting an ICE in the future. See
21+
/// <https://github.com/rust-lang/rust/pull/98548#discussion_r908219164>
22+
pub struct S2;

0 commit comments

Comments
 (0)