// MIR for `try_identity` after SimplifyBranchSame

fn try_identity(_1: Result<u32, i32>) -> Result<u32, i32> {
    debug x => _1;                       // in scope 0 at $DIR/simplify_try.rs:20:17: 20:18
    let mut _0: std::result::Result<u32, i32>; // return place in scope 0 at $DIR/simplify_try.rs:20:41: 20:57
    let _2: u32;                         // in scope 0 at $DIR/simplify_try.rs:21:9: 21:10
    let mut _3: std::result::Result<u32, i32>; // in scope 0 at $DIR/simplify_try.rs:21:19: 21:33
    let mut _4: std::result::Result<u32, i32>; // in scope 0 at $DIR/simplify_try.rs:21:31: 21:32
    let mut _5: isize;                   // in scope 0 at $DIR/simplify_try.rs:22:9: 22:15
    let _6: i32;                         // in scope 0 at $DIR/simplify_try.rs:22:13: 22:14
    let mut _7: !;                       // in scope 0 at $DIR/simplify_try.rs:22:19: 22:51
    let mut _8: i32;                     // in scope 0 at $DIR/simplify_try.rs:22:37: 22:50
    let mut _9: i32;                     // in scope 0 at $DIR/simplify_try.rs:22:48: 22:49
    let _10: u32;                        // in scope 0 at $DIR/simplify_try.rs:23:12: 23:13
    let mut _11: u32;                    // in scope 0 at $DIR/simplify_try.rs:25:8: 25:9
    scope 1 {
        debug y => ((_0 as Ok).0: u32);  // in scope 1 at $DIR/simplify_try.rs:21:9: 21:10
    }
    scope 2 {
        debug e => ((_0 as Err).0: i32); // in scope 2 at $DIR/simplify_try.rs:22:13: 22:14
        scope 5 (inlined <i32 as From<i32>>::from) { // at $DIR/simplify_try.rs:22:37: 22:50
            debug t => ((_0 as Err).0: i32); // in scope 5 at $DIR/simplify_try.rs:22:37: 22:50
        }
        scope 6 (inlined from_error::<u32, i32>) { // at $DIR/simplify_try.rs:22:26: 22:51
            debug e => ((_0 as Err).0: i32); // in scope 6 at $DIR/simplify_try.rs:22:26: 22:51
        }
    }
    scope 3 {
        debug v => ((_0 as Ok).0: u32);  // in scope 3 at $DIR/simplify_try.rs:23:12: 23:13
    }
    scope 4 (inlined into_result::<u32, i32>) { // at $DIR/simplify_try.rs:21:19: 21:33
        debug r => _4;                   // in scope 4 at $DIR/simplify_try.rs:21:19: 21:33
    }

    bb0: {
        StorageLive(_2);                 // scope 0 at $DIR/simplify_try.rs:21:9: 21:10
        StorageLive(_3);                 // scope 0 at $DIR/simplify_try.rs:21:19: 21:33
        StorageLive(_4);                 // scope 0 at $DIR/simplify_try.rs:21:31: 21:32
        _4 = _1;                         // scope 0 at $DIR/simplify_try.rs:21:31: 21:32
        _3 = move _4;                    // scope 4 at $DIR/simplify_try.rs:21:19: 21:33
        StorageDead(_4);                 // scope 0 at $DIR/simplify_try.rs:21:32: 21:33
        _5 = discriminant(_3);           // scope 0 at $DIR/simplify_try.rs:21:19: 21:33
        goto -> bb1;                     // scope 0 at $DIR/simplify_try.rs:21:13: 21:33
    }

    bb1: {
        _0 = move _3;                    // scope 1 at $DIR/simplify_try.rs:25:5: 25:10
        StorageDead(_3);                 // scope 0 at $DIR/simplify_try.rs:24:6: 24:7
        StorageDead(_2);                 // scope 0 at $DIR/simplify_try.rs:26:1: 26:2
        return;                          // scope 0 at $DIR/simplify_try.rs:26:2: 26:2
    }
}
