mirror of https://github.com/rust-lang/reference
add support for ATB in reference
This commit is contained in:
parent
5afb503a4c
commit
684b549fc7
|
@ -53,7 +53,7 @@ mod m {
|
||||||
> | `<` ( _GenericArg_ `,` )<sup>\*</sup> _GenericArg_ `,`<sup>?</sup> `>`
|
> | `<` ( _GenericArg_ `,` )<sup>\*</sup> _GenericArg_ `,`<sup>?</sup> `>`
|
||||||
>
|
>
|
||||||
> _GenericArg_ :\
|
> _GenericArg_ :\
|
||||||
> [_Lifetime_] | [_Type_] | _GenericArgsConst_ | _GenericArgsBinding_
|
> [_Lifetime_] | [_Type_] | _GenericArgsConst_ | _GenericArgsBinding_ | _GenericArgsBounds_
|
||||||
>
|
>
|
||||||
> _GenericArgsConst_ :\
|
> _GenericArgsConst_ :\
|
||||||
> [_BlockExpression_]\
|
> [_BlockExpression_]\
|
||||||
|
@ -62,7 +62,10 @@ mod m {
|
||||||
> | [_SimplePathSegment_]
|
> | [_SimplePathSegment_]
|
||||||
>
|
>
|
||||||
> _GenericArgsBinding_ :\
|
> _GenericArgsBinding_ :\
|
||||||
> [IDENTIFIER] `=` [_Type_]
|
> [IDENTIFIER] _GenericArgs_<sup>?</sup> `=` [_TypeParamBounds_]
|
||||||
|
>
|
||||||
|
> _GenericArgsBounds_ :\
|
||||||
|
> [IDENTIFIER] _GenericArgs_<sup>?</sup> `:` [_TypeParamBounds_]
|
||||||
|
|
||||||
Paths in expressions allow for paths with generic arguments to be specified. They are
|
Paths in expressions allow for paths with generic arguments to be specified. They are
|
||||||
used in various places in [expressions] and [patterns].
|
used in various places in [expressions] and [patterns].
|
||||||
|
@ -396,6 +399,7 @@ mod without { // crate::without
|
||||||
[_SimplePathSegment_]: #simple-paths
|
[_SimplePathSegment_]: #simple-paths
|
||||||
[_Type_]: types.md#type-expressions
|
[_Type_]: types.md#type-expressions
|
||||||
[_TypeNoBounds_]: types.md#type-expressions
|
[_TypeNoBounds_]: types.md#type-expressions
|
||||||
|
[_TypeParamBounds_]: trait-bounds.md
|
||||||
[literal]: expressions/literal-expr.md
|
[literal]: expressions/literal-expr.md
|
||||||
[item]: items.md
|
[item]: items.md
|
||||||
[variable]: variables.md
|
[variable]: variables.md
|
||||||
|
|
Loading…
Reference in New Issue