summary refs log tree commit diff
path: root/src/test/run-fail/unwind-resource-fail.rs
blob: 4ab8dc950850d528674093267d5521d09d223d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// error-pattern:fail
// xfail-test

resource r(i: int) {
    // What happens when destructors throw?
    fail;
}

fn main() {
    @0;
    let r <- r(0);
}