rust/src/test/run-fail/unwind-initializer-indirect.rs
Brian Anderson d267e7486e Zero locals when the initializer might call a function
The function might fail, leaving the local uninitialized

Issue #236
2011-09-11 17:31:40 -07:00

7 lines
85 B
Rust

// error-pattern:fail
fn f() -> @int { fail; }
fn main() {
let a: @int = f();
}