summary refs log tree commit diff
path: root/src/test/run-fail/issue-2272.rs
blob: 5aa1f4a92f6d73d735fb2d593d34762c637673bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// error-pattern:explicit failure
// Issue #2272 - unwind this without leaking the unique pointer

fn main() {
    let _x = {
        y: {
            z: @0
        },
        a: ~0
    };
    fail;
}