This makes sure that cleanups added after the first invoke in a scope are actually run on unwind
12 lines
118 B
Rust
12 lines
118 B
Rust
// error-pattern:fail
|
|
|
|
fn a() { }
|
|
|
|
fn b() { fail; }
|
|
|
|
fn main() {
|
|
let x = [0];
|
|
a();
|
|
let y = [0];
|
|
b();
|
|
} |