diff --git a/src/test/run-fail/unwind-resource-fail3.rs b/src/test/run-fail/unwind-resource-fail3.rs new file mode 100644 index 0000000000000..834c3ff782111 --- /dev/null +++ b/src/test/run-fail/unwind-resource-fail3.rs @@ -0,0 +1,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); +}