rust/src/test/run-pass/drop-on-ret.rs
2012-08-01 19:16:06 -07:00

8 lines
123 B
Rust

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