Add a test for #2099

This commit is contained in:
Seiichi Uchida 2017-10-30 23:31:08 +09:00
parent fe39c0cd8c
commit 792f48c976
2 changed files with 17 additions and 0 deletions

View File

@ -415,3 +415,13 @@ fn match_with_trailing_spaces() {
None => 1,
}
}
fn issue_2099() {
let a = match x {
};
let b = match x {
};
match x {}
}

View File

@ -456,3 +456,10 @@ fn match_with_trailing_spaces() {
None => 1,
}
}
fn issue_2099() {
let a = match x {};
let b = match x {};
match x {}
}