fn make_string() -> ~str { return ~"foo"; } fn main() { let string: ~str = make_string(); io::println(string); } // deallocated here