]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/issue_62289.rs
Make tests unit.
[rust.git] / tests / 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 }