Add a test for #2151

This commit is contained in:
topecongiro 2017-11-15 10:44:51 +09:00
parent a90b76a731
commit bf775785e0
2 changed files with 17 additions and 0 deletions

View File

@ -435,6 +435,15 @@ impl<'tcx> Const<'tcx> {
}
}
// #2151
fn issue_2151() {
match either {
x => {
}y => ()
}
}
// #2152
fn issue_2152() {
match m {

View File

@ -476,6 +476,14 @@ impl<'tcx> Const<'tcx> {
}
}
// #2151
fn issue_2151() {
match either {
x => {}
y => (),
}
}
// #2152
fn issue_2152() {
match m {