mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 20:03:37 +00:00
rustdoc-json: Add assoc type ICE regression test
This commit is contained in:
parent
5ffa8f67b7
commit
ae4b929c00
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…
Reference in New Issue
Block a user