mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-24 21:53:56 +00:00
ac671c3172
Issue #1022
9 lines
156 B
Rust
9 lines
156 B
Rust
// Reported as issue #126, child leaks the string.
|
|
|
|
use std;
|
|
import std::task;
|
|
|
|
fn# child2(&&s: str) { }
|
|
|
|
fn main() { let x = task::spawn2("hi", child2); }
|