]> git.proxmox.com Git - rustc.git/blame - src/test/mir-opt/issue-62289.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / mir-opt / issue-62289.rs
CommitLineData
416331ca
XL
1// check that we don't forget to drop the Box if we early return before
2// initializing it
416331ca
XL
3// ignore-wasm32-bare compiled with panic=abort by default
4
5#![feature(box_syntax)]
6
3dfed10e 7// EMIT_MIR issue_62289.test.ElaborateDrops.before.mir
416331ca
XL
8fn test() -> Option<Box<u32>> {
9 Some(box (None?))
10}
11
12fn main() {
13 test();
14}