@@ -424,8 +424,7 @@ match tuple {
424
424
>   ;  ; | [ BYTE_LITERAL] \
425
425
>   ;  ; | ` - ` <sup >?</sup > [ INTEGER_LITERAL] \
426
426
>   ;  ; | ` - ` <sup >?</sup > [ FLOAT_LITERAL] \
427
- >   ;  ; | [ _ PathInExpression_ ] \
428
- >   ;  ; | [ _ QualifiedPathInExpression_ ]
427
+ >   ;  ; | [ _ PathPattern_ ]
429
428
430
429
Range patterns match values within the range defined by their bounds. A range pattern may be
431
430
closed or half-open. A range pattern is closed if it has both a lower and an upper bound, and
@@ -766,8 +765,7 @@ A future version of Rust may give the non-parenthesized version an alternate mea
766
765
767
766
> ** <sup >Syntax</sup >** \
768
767
> _ PathPattern_ :\
769
- >   ;  ;   ;  ; [ _ PathInExpression_ ] \
770
- >   ;  ; | [ _ QualifiedPathInExpression_ ]
768
+ >   ;  ;   ;  ; [ _ PathExpression_ ]
771
769
772
770
_ Path patterns_ are patterns that refer either to constant values or
773
771
to structs or enum variants that have no fields.
@@ -851,6 +849,7 @@ result in a type mismatch between `x` in the different subpatterns.
851
849
[ _MacroInvocation_ ] : macros.md#macro-invocation
852
850
[ _ObsoleteRangePattern_ ] : #range-patterns
853
851
[ _PathInExpression_ ] : paths.md#paths-in-expressions
852
+ [ _PathExpression_ ] : expressions/path-expr.md
854
853
[ _PathPattern_ ] : #path-patterns
855
854
[ _Pattern_ ] : #patterns
856
855
[ _PatternWithoutRange_ ] : #patterns
0 commit comments