Skip to content

Commit 792f48c

Browse files
committed
Add a test for #2099
1 parent fe39c0c commit 792f48c

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

tests/source/match.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,3 +415,13 @@ fn match_with_trailing_spaces() {
415415
None => 1,
416416
}
417417
}
418+
419+
fn issue_2099() {
420+
let a = match x {
421+
};
422+
let b = match x {
423+
424+
};
425+
426+
match x {}
427+
}

tests/target/match.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,3 +456,10 @@ fn match_with_trailing_spaces() {
456456
None => 1,
457457
}
458458
}
459+
460+
fn issue_2099() {
461+
let a = match x {};
462+
let b = match x {};
463+
464+
match x {}
465+
}

0 commit comments

Comments
 (0)