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

resource faily_box(_i: @int) {
    // What happens to the box pointer owned by this resource?
    fail "quux";
}

fn main() {
    faily_box(@10);
}