Skip to content

Commit 112b79f

Browse files
committed
---
yaml --- r: 5295 b: refs/heads/master c: 69eda46 h: refs/heads/master i: 5293: 92f30d4 5291: 7103891 5287: 08534a6 5279: 2dd3691 v: v3
1 parent 2795849 commit 112b79f

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 103197bc422b6f1ae9958cc5c6a928d94d3e3366
2+
refs/heads/master: 69eda46af880847f8edc194da9c69974e1e746ef
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// -*- rust -*-
2+
3+
// error-pattern:1 == 2
4+
use std;
5+
import std::task;
6+
import std::comm::port;
7+
import std::comm::recv;
8+
9+
fn child() { assert (1 == 2); }
10+
11+
fn parent() {
12+
// Since this task isn't supervised it won't bring down the whole
13+
// process
14+
task::unsupervise();
15+
let p = port::<int>();
16+
let f = child;
17+
task::spawn(f);
18+
let x = recv(p);
19+
}
20+
21+
fn main() {
22+
let f = parent;
23+
task::spawn(f);
24+
}

0 commit comments

Comments
 (0)