make GATs print properly in traits

This commit is contained in:
Michael Goulet
2022-02-14 18:14:38 -08:00
parent 8a0c2c4e83
commit ca6e06efba
9 changed files with 99 additions and 49 deletions

View File

@@ -233,6 +233,9 @@ pub enum ItemEnum {
default: Option<String>,
},
AssocType {
/// generics and `where` clause
generics: Generics,
/// e.g. `: Sized`
bounds: Vec<GenericBound>,
/// e.g. `type X = usize;`
default: Option<Type>,