test/rustdoc-json/assoc_type.rs: Maximize chance of detecting future ICEs

This commit is contained in:
Martin Nordholts 2022-06-28 11:02:14 +02:00
parent ae4b929c00
commit 2888e76d06

View File

@ -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;