rust/src/test/run-pass/drop-on-ret.rs

7 lines
115 B
Rust

// -*- rust -*-
fn f() -> int { if (true) { let str s = "should not leak"; ret 1; } ret 0; }
fn main() { f(); }