2020-01-10 13:15:16 -06:00
|
|
|
enum Empty {}
|
|
|
|
|
|
|
|
fn empty() -> Option<Empty> {
|
|
|
|
None
|
|
|
|
}
|
|
|
|
|
2020-07-27 14:22:43 -05:00
|
|
|
// EMIT_MIR unreachable.main.UnreachablePropagation.diff
|
2020-01-10 13:15:16 -06:00
|
|
|
fn main() {
|
|
|
|
if let Some(_x) = empty() {
|
|
|
|
let mut _y;
|
|
|
|
|
|
|
|
if true {
|
|
|
|
_y = 21;
|
|
|
|
} else {
|
|
|
|
_y = 42;
|
|
|
|
}
|
|
|
|
|
|
|
|
match _x { }
|
|
|
|
}
|
|
|
|
}
|