Add a regression test for TestCase::Or without place
This commit is contained in:
parent
c8a5b3677b
commit
1524060da6
1 changed files with 11 additions and 0 deletions
11
tests/ui/closures/upvar-or-pattern-issue-138958.rs
Normal file
11
tests/ui/closures/upvar-or-pattern-issue-138958.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
//@ edition:2024
|
||||
//@ check-pass
|
||||
|
||||
pub fn f(x: (u32, u32)) {
|
||||
let _ = || {
|
||||
let ((0, a) | (a, _)) = x;
|
||||
a
|
||||
};
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue