Add regression test
This commit is contained in:
parent
addd8a9003
commit
cde9808eaa
1 changed files with 6 additions and 0 deletions
|
@ -163,4 +163,10 @@ fn main() {
|
|||
BAR => {} // Not detected as unreachable because `try_eval_bits` fails on `BAR`.
|
||||
_ => {}
|
||||
}
|
||||
|
||||
// Regression test, see https://github.com/rust-lang/rust/pull/66326#issuecomment-552889933
|
||||
match &0 {
|
||||
BAR => {} // ok
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue