We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8a5b36 commit 1524060Copy full SHA for 1524060
tests/ui/closures/upvar-or-pattern-issue-138958.rs
@@ -0,0 +1,11 @@
1
+//@ edition:2024
2
+//@ check-pass
3
+
4
+pub fn f(x: (u32, u32)) {
5
+ let _ = || {
6
+ let ((0, a) | (a, _)) = x;
7
+ a
8
+ };
9
+}
10
11
+fn main() {}
0 commit comments