Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 00f8b2e

Browse files
committedApr 1, 2025
Add test case for issue rust-lang#138973
1 parent acd0f5b commit 00f8b2e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎tests/ui/closures/or-patterns-issue-137467.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ fn match_const(x: (u32, u32, u32)) {
2424
};
2525
}
2626

27+
// related testcase reported in #138973
28+
fn without_bindings(x: u32) {
29+
let _ = || {
30+
let (0 | _) = x;
31+
};
32+
}
33+
2734
enum Choice { A, B }
2835

2936
fn match_unit_variant(x: (Choice, u32, u32)) {

0 commit comments

Comments
 (0)
Please sign in to comment.