Skip to content

Commit 5b7145a

Browse files
committed
Add an XFAILed test for failing destructors
Issue #236
1 parent 53f7d61 commit 5b7145a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// error-pattern:fail
2+
// xfail-test
3+
4+
resource r(i: int) {
5+
// What happens when destructors throw?
6+
fail;
7+
}
8+
9+
fn main() {
10+
@0;
11+
let r <- r(0);
12+
}

0 commit comments

Comments
 (0)