aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/child-outlives-parent.rs
blob: a9459a4791144ed999f31c8f47ff15065b375502 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// xfail-boot
// xfail-stage0
// xfail-stage1
// xfail-stage2
// Reported as issue #126, child leaks the string.

fn child2(str s) {
}

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