1
Fork 0

Add regression test

This commit is contained in:
Nadrieril 2019-11-12 13:24:04 +00:00
parent addd8a9003
commit cde9808eaa

View file

@ -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
_ => {}
}
}