File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 45e62d0a144f336e2ad849c1bb7767a12f312643
2
+ refs/heads/master: 8b98e5a296d95c5e832db0756828e5bec31c6f50
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
5
5
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
Original file line number Diff line number Diff line change @@ -876,6 +876,13 @@ fn add(x: int, y: int) -> int {
876
876
}
877
877
~~~~
878
878
879
+ As with ` let ` bindings, function arguments are irrefutable patterns,
880
+ so any pattern that is valid in a let binding is also valid as an argument.
881
+
882
+ ~~~
883
+ fn first((value, _): (int, int)) -> int { value }
884
+ ~~~
885
+
879
886
880
887
#### Generic functions
881
888
You can’t perform that action at this time.
0 commit comments