File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,9 @@ copying or moving what was matched.
249
249
[ Path patterns] ( #path-patterns ) take precedence over identifier patterns. It is an error
250
250
if ` ref ` or ` ref mut ` is specified and the identifier shadows a constant.
251
251
252
+ Identifier patterns are irrefutable if the ` @ ` subpattern is irrefutable or
253
+ the subpattern is not specified.
254
+
252
255
### Binding modes
253
256
254
257
To service better ergonomics, patterns operate in different * binding modes* in
@@ -638,7 +641,7 @@ They are also used to [destructure](#destructuring) a tuple.
638
641
The form ` (..) ` with a single [ _ RestPattern_ ] is a special form that does not
639
642
require a comma, and matches a tuple of any size.
640
643
641
- This pattern is refutable when one of its subpatterns is refutable.
644
+ The tuple pattern is refutable when one of its subpatterns is refutable.
642
645
643
646
## Grouped patterns
644
647
You can’t perform that action at this time.
0 commit comments