about summary refs log tree commit diff
path: root/tests/mir-opt/building/issue_101867.rs
blob: a00bc13b3fe5fc56fd2f702ca7a97682dec9f792 (plain)
1
2
3
4
5
6
7
8
9
//@ compile-flags: -Zmir-opt-level=0
// skip-filecheck
// EMIT_MIR issue_101867.main.built.after.mir
fn main() {
    let x: Option<u8> = Some(1);
    let Some(y) = x else {
        panic!();
    };
}