rustdoc-json: Add assoc type ICE regression test
This commit is contained in:
parent
5ffa8f67b7
commit
ae4b929c00
1 changed files with 16 additions and 0 deletions
16
src/test/rustdoc-json/assoc_type.rs
Normal file
16
src/test/rustdoc-json/assoc_type.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Regression test for <https://github.com/rust-lang/rust/issues/98547>.
|
||||
|
||||
// @has assoc_type.json
|
||||
// @has - "$.index[*][?(@.name=='Trait')]"
|
||||
// @has - "$.index[*][?(@.name=='AssocType')]"
|
||||
// @has - "$.index[*][?(@.name=='S')]"
|
||||
|
||||
pub trait Trait {
|
||||
type AssocType;
|
||||
}
|
||||
|
||||
impl<T> Trait for T {
|
||||
type AssocType = Self;
|
||||
}
|
||||
|
||||
pub struct S;
|
Loading…
Add table
Add a link
Reference in a new issue