diff options
| author | Martin Nordholts <enselic@gmail.com> | 2022-06-28 11:02:14 +0200 |
|---|---|---|
| committer | Martin Nordholts <enselic@gmail.com> | 2022-06-28 11:02:14 +0200 |
| commit | 2888e76d06483e505bf4956a08bc24d4e7764beb (patch) | |
| tree | 248196bdc06dd77f9ec37aa3b04b4803ea3f29ba | |
| parent | ae4b929c00fbead6a0923a07306ffde077d622ad (diff) | |
| download | rust-2888e76d06483e505bf4956a08bc24d4e7764beb.tar.gz rust-2888e76d06483e505bf4956a08bc24d4e7764beb.zip | |
test/rustdoc-json/assoc_type.rs: Maximize chance of detecting future ICEs
| -rw-r--r-- | src/test/rustdoc-json/assoc_type.rs | 6 |
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; |
