Skip to content

Commit

Permalink
test/rustdoc-json/assoc_type.rs: Maximize chance of detecting future …
Browse files Browse the repository at this point in the history
…ICEs
  • Loading branch information
Enselic committed Jun 28, 2022
1 parent ae4b929 commit 2888e76
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/rustdoc-json/assoc_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

0 comments on commit 2888e76

Please sign in to comment.