We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2795849 commit 112b79fCopy full SHA for 112b79f
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 103197bc422b6f1ae9958cc5c6a928d94d3e3366
+refs/heads/master: 69eda46af880847f8edc194da9c69974e1e746ef
trunk/src/test/run-pass/linked-failure.rs
@@ -0,0 +1,24 @@
+// -*- rust -*-
+
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
24
0 commit comments