Skip to content

Commit eae85a3

Browse files
add support for ATB in reference
1 parent 5afb503 commit eae85a3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/paths.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ mod m {
5353
> &nbsp;&nbsp; | `<` ( _GenericArg_ `,` )<sup>\*</sup> _GenericArg_ `,`<sup>?</sup> `>`
5454
>
5555
> _GenericArg_ :\
56-
> &nbsp;&nbsp; [_Lifetime_] | [_Type_] | _GenericArgsConst_ | _GenericArgsBinding_
56+
> &nbsp;&nbsp; [_Lifetime_] | [_Type_] | _GenericArgsConst_ | _GenericArgsBinding_ | _GenericArgsBounds_
5757
>
5858
> _GenericArgsConst_ :\
5959
> &nbsp;&nbsp; &nbsp;&nbsp; [_BlockExpression_]\
@@ -62,7 +62,10 @@ mod m {
6262
> &nbsp;&nbsp; | [_SimplePathSegment_]
6363
>
6464
> _GenericArgsBinding_ :\
65-
> &nbsp;&nbsp; [IDENTIFIER] `=` [_Type_]
65+
> &nbsp;&nbsp; [IDENTIFIER] _GenericArgs_<sup>?</sup> `=` [_TypeParamBounds_]
66+
>
67+
> _GenericArgsBounds_ :\
68+
> &nbsp;&nbsp; [IDENTIFIER] _GenericArgs_<sup>?</sup> `:` [_TypeParamBounds_]
6669
6770
Paths in expressions allow for paths with generic arguments to be specified. They are
6871
used in various places in [expressions] and [patterns].
@@ -396,6 +399,7 @@ mod without { // crate::without
396399
[_SimplePathSegment_]: #simple-paths
397400
[_Type_]: types.md#type-expressions
398401
[_TypeNoBounds_]: types.md#type-expressions
402+
[_TypeParamBounds_]: ../trait-bounds.md
399403
[literal]: expressions/literal-expr.md
400404
[item]: items.md
401405
[variable]: variables.md

0 commit comments

Comments
 (0)