fix: Add trait alias grammar to rust.ungram
This commit is contained in:
@@ -239,8 +239,11 @@ Static =
|
||||
Trait =
|
||||
Attr* Visibility?
|
||||
'unsafe'? 'auto'?
|
||||
'trait' Name GenericParamList? (':' TypeBoundList?)? WhereClause?
|
||||
AssocItemList
|
||||
'trait' Name GenericParamList?
|
||||
(
|
||||
(':' TypeBoundList?)? WhereClause? AssocItemList
|
||||
| '=' TypeBoundList? WhereClause? ';'
|
||||
)
|
||||
|
||||
AssocItemList =
|
||||
'{' Attr* AssocItem* '}'
|
||||
|
||||
Reference in New Issue
Block a user