rust/src/test/run-fail/issue-2272.rs

12 lines
200 B
Rust
Raw Normal View History

// error-pattern:explicit failure
// Issue #2272 - unwind this without leaking the unique pointer
fn main() {
let _x = {
y: {
z: @0
},
a: ~0
};
fail;
}