]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/issue-62289.rs
Merge commit 'dbee13661efa269cb4cd57bb4c6b99a19732b484' into sync_cg_clif-2020-12-27
[rust.git] / src / test / mir-opt / issue-62289.rs
1 // check that we don't forget to drop the Box if we early return before
2 // initializing it
3 // ignore-wasm32-bare compiled with panic=abort by default
4
5 #![feature(box_syntax)]
6
7 // EMIT_MIR issue_62289.test.ElaborateDrops.before.mir
8 fn test() -> Option<Box<u32>> {
9     Some(box (None?))
10 }
11
12 fn main() {
13     test();
14 }