mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
test/rustdoc-json/assoc_type.rs: Maximize chance of detecting future ICEs
This commit is contained in:
parent
ae4b929c00
commit
2888e76d06
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user