summary refs log tree commit diff
path: root/src/test/mir-opt/not_equal_false.rs
blob: a98a2834e8ec91d7e28cf09825a284f1bc584a14 (plain)
1
2
3
4
5
6
7
8
9
// EMIT_MIR not_equal_false.opt.InstCombine.diff

fn opt(x: Option<()>) -> bool {
    matches!(x, None) || matches!(x, Some(_))
}

fn main() {
    opt(None);
}