Add another XFAILed test for failing destructors
This commit is contained in:
parent
ca0d3cae5c
commit
ad2bdbee08
13
src/test/run-fail/unwind-resource-fail2.rs
Normal file
13
src/test/run-fail/unwind-resource-fail2.rs
Normal file
@ -0,0 +1,13 @@
|
||||
// error-pattern:fail
|
||||
// xfail-test
|
||||
|
||||
resource r(i: int) {
|
||||
// Double-fail!!
|
||||
fail;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
@0;
|
||||
let r <- r(0);
|
||||
fail;
|
||||
}
|
Loading…
Reference in New Issue
Block a user