File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ r[items.type]
44r[ items.type.syntax]
55``` grammar,items
66TypeAlias ->
7- `type` IDENTIFIER GenericParams? ( `:` TypeParamBounds )?
7+ `type` IDENTIFIER GenericParams? ( `:` TypeParamBounds? )?
88 WhereClause?
99 ( `=` Type WhereClause?)? `;`
1010```
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ GenericArgsBinding ->
6868 IDENTIFIER GenericArgs? `=` Type
6969
7070GenericArgsBounds ->
71- IDENTIFIER GenericArgs? `:` TypeParamBounds
71+ IDENTIFIER GenericArgs? `:` TypeParamBounds?
7272```
7373
7474r[ paths.expr.intro]
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ r[type.impl-trait]
33
44r[ type.impl-trait.syntax]
55``` grammar,types
6- ImplTraitType -> `impl` TypeParamBounds
6+ ImplTraitType -> `impl` TypeParamBounds?
77
8- ImplTraitTypeOneBound -> `impl` TraitBound
8+ ImplTraitTypeOneBound -> `impl` TraitBound?
99```
1010
1111r[ type.impl-trait.intro]
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ r[type.trait-object]
33
44r[ type.trait-object.syntax]
55``` grammar,types
6- TraitObjectType -> `dyn`? TypeParamBounds
6+ TraitObjectType -> TypeParamBounds | `dyn` TypeParamBounds?
77
8- TraitObjectTypeOneBound -> `dyn`? TraitBound
8+ TraitObjectTypeOneBound -> TraitBound | `dyn` TraitBound?
99```
1010
1111r[ type.trait-object.intro]
You can’t perform that action at this time.
0 commit comments