Skip to content

Commit 1524060

Browse files
committed
Add a regression test for TestCase::Or without place
1 parent c8a5b36 commit 1524060

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: tests/ui/closures/upvar-or-pattern-issue-138958.rs

+11
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)