Finalize TypeBound grammar
This commit is contained in:
@@ -242,6 +242,13 @@ ImplTraitType =
|
||||
DynTraitType =
|
||||
'dyn' TypeBoundList
|
||||
|
||||
TypeBoundList =
|
||||
bounds:(TypeBound ('+' TypeBound)* '+'?)
|
||||
|
||||
TypeBound =
|
||||
'lifetime'
|
||||
| '?'? Type
|
||||
|
||||
TupleExpr =
|
||||
Attr* '(' Expr* ')'
|
||||
|
||||
@@ -443,12 +450,6 @@ MacroStmts =
|
||||
statements:Stmt*
|
||||
Expr?
|
||||
|
||||
TypeBound =
|
||||
'lifetime' | 'const'? Type
|
||||
|
||||
TypeBoundList =
|
||||
bounds:TypeBound*
|
||||
|
||||
WherePred =
|
||||
('for' GenericParamList)? ('lifetime' | Type) ':' TypeBoundList
|
||||
|
||||
|
||||
Reference in New Issue
Block a user