Add a test for #2151
This commit is contained in:
parent
a90b76a731
commit
bf775785e0
@ -435,6 +435,15 @@ impl<'tcx> Const<'tcx> {
|
||||
}
|
||||
}
|
||||
|
||||
// #2151
|
||||
fn issue_2151() {
|
||||
match either {
|
||||
x => {
|
||||
|
||||
}y => ()
|
||||
}
|
||||
}
|
||||
|
||||
// #2152
|
||||
fn issue_2152() {
|
||||
match m {
|
||||
|
@ -476,6 +476,14 @@ impl<'tcx> Const<'tcx> {
|
||||
}
|
||||
}
|
||||
|
||||
// #2151
|
||||
fn issue_2151() {
|
||||
match either {
|
||||
x => {}
|
||||
y => (),
|
||||
}
|
||||
}
|
||||
|
||||
// #2152
|
||||
fn issue_2152() {
|
||||
match m {
|
||||
|
Loading…
x
Reference in New Issue
Block a user