File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ mod m {
53
53
>   ;  ; | ` < ` ( _ GenericArg_ ` , ` )<sup >\* </sup > _ GenericArg_ ` , ` <sup >?</sup > ` > `
54
54
>
55
55
> _ GenericArg_ :\
56
- >   ;  ; [ _ Lifetime_ ] | [ _ Type_ ] | _ GenericArgsConst_ | _ GenericArgsBinding_
56
+ >   ;  ; [ _ Lifetime_ ] | [ _ Type_ ] | _ GenericArgsConst_ | _ GenericArgsBinding_ | _ GenericArgsBounds _
57
57
>
58
58
> _ GenericArgsConst_ :\
59
59
>   ;  ;   ;  ; [ _ BlockExpression_ ] \
@@ -62,7 +62,10 @@ mod m {
62
62
>   ;  ; | [ _ SimplePathSegment_ ]
63
63
>
64
64
> _ GenericArgsBinding_ :\
65
- >   ;  ; [ IDENTIFIER] ` = ` [ _ Type_ ]
65
+ >   ;  ; [ IDENTIFIER] _ GenericArgs_ <sup >?</sup > ` = ` [ _ TypeParamBounds_ ]
66
+ >
67
+ > _ GenericArgsBounds_ :\
68
+ >   ;  ; [ IDENTIFIER] _ GenericArgs_ <sup >?</sup > ` : ` [ _ TypeParamBounds_ ]
66
69
67
70
Paths in expressions allow for paths with generic arguments to be specified. They are
68
71
used in various places in [ expressions] and [ patterns] .
@@ -396,6 +399,7 @@ mod without { // crate::without
396
399
[ _SimplePathSegment_ ] : #simple-paths
397
400
[ _Type_ ] : types.md#type-expressions
398
401
[ _TypeNoBounds_ ] : types.md#type-expressions
402
+ [ _TypeParamBounds_ ] : ../trait-bounds.md
399
403
[ literal ] : expressions/literal-expr.md
400
404
[ item ] : items.md
401
405
[ variable ] : variables.md
You can’t perform that action at this time.
0 commit comments