aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/child-outlives-parent.rs
blob: d7d7c34430274c8bba845fbcf78bb392b8c81874 (plain) (blame)
1
2
3
4
5
6
7
8
// Reported as issue #126, child leaks the string.

fn child2(str s) {
}

fn main() {
  auto x = spawn child2("hi");
}