Add another testcase for #910
This commit is contained in:
parent
01ea880196
commit
f7b67944cd
11
src/test/run-fail/unwind-resource-fail3.rs
Normal file
11
src/test/run-fail/unwind-resource-fail3.rs
Normal file
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user