5b7145a9f4
Issue #236
12 lines
155 B
Rust
12 lines
155 B
Rust
// error-pattern:fail
|
|
// xfail-test
|
|
|
|
resource r(i: int) {
|
|
// What happens when destructors throw?
|
|
fail;
|
|
}
|
|
|
|
fn main() {
|
|
@0;
|
|
let r <- r(0);
|
|
} |