]>
Commit | Line | Data |
---|---|---|
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 |
8 | fn test() -> Option<Box<u32>> { |
9 | Some(box (None?)) | |
10 | } | |
11 | ||
12 | fn main() { | |
13 | test(); | |
14 | } |