2010-06-23 23:03:09 -05:00
|
|
|
// -*- rust -*-
|
|
|
|
|
2011-05-12 14:45:29 -05:00
|
|
|
// error-pattern:1 == 2
|
2011-08-10 15:36:57 -05:00
|
|
|
// no-valgrind
|
2010-06-23 23:03:09 -05:00
|
|
|
|
2011-08-13 17:20:11 -05:00
|
|
|
use std;
|
|
|
|
import std::task;
|
2011-08-15 18:54:02 -05:00
|
|
|
import std::comm::mk_port;
|
2011-08-13 17:20:11 -05:00
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn child() { assert (1 == 2); }
|
2010-06-23 23:03:09 -05:00
|
|
|
|
2011-08-13 17:20:11 -05:00
|
|
|
fn main() {
|
2011-08-13 02:10:18 -05:00
|
|
|
let p = mk_port::<int>();
|
2011-08-13 17:20:11 -05:00
|
|
|
task::_spawn(bind child());
|
2011-08-15 18:54:02 -05:00
|
|
|
let x = p.recv();
|
2011-08-13 17:20:11 -05:00
|
|
|
}
|