Add a test for #2099
This commit is contained in:
parent
fe39c0cd8c
commit
792f48c976
@ -415,3 +415,13 @@ fn match_with_trailing_spaces() {
|
||||
None => 1,
|
||||
}
|
||||
}
|
||||
|
||||
fn issue_2099() {
|
||||
let a = match x {
|
||||
};
|
||||
let b = match x {
|
||||
|
||||
};
|
||||
|
||||
match x {}
|
||||
}
|
||||
|
@ -456,3 +456,10 @@ fn match_with_trailing_spaces() {
|
||||
None => 1,
|
||||
}
|
||||
}
|
||||
|
||||
fn issue_2099() {
|
||||
let a = match x {};
|
||||
let b = match x {};
|
||||
|
||||
match x {}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user