Skip to content

Commit a961068

Browse files
committed
add layout test
1 parent b3aba94 commit a961068

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

crates/hir-ty/src/layout/tests/closure.rs

+14
Original file line numberDiff line numberDiff line change
@@ -255,3 +255,17 @@ fn ellipsis_pattern() {
255255
}
256256
}
257257
}
258+
259+
#[test]
260+
fn regression_15623() {
261+
size_and_align_expr! {
262+
let a = 2;
263+
let b = 3;
264+
let c = 5;
265+
move || {
266+
let 0 = a else { return b; };
267+
let y = c;
268+
y
269+
}
270+
}
271+
}

0 commit comments

Comments
 (0)