mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
add layout test
This commit is contained in:
parent
b3aba94cbd
commit
a961068504
1 changed files with 14 additions and 0 deletions
|
@ -255,3 +255,17 @@ fn ellipsis_pattern() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn regression_15623() {
|
||||
size_and_align_expr! {
|
||||
let a = 2;
|
||||
let b = 3;
|
||||
let c = 5;
|
||||
move || {
|
||||
let 0 = a else { return b; };
|
||||
let y = c;
|
||||
y
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue