2010-06-23 21:03:09 -07:00
|
|
|
// -*- rust -*-
|
|
|
|
|
2011-05-12 21:45:29 +02:00
|
|
|
// error-pattern:1 == 2
|
2010-06-23 21:03:09 -07:00
|
|
|
|
|
|
|
fn child() {
|
2011-05-02 17:47:24 -07:00
|
|
|
assert (1 == 2);
|
2010-06-23 21:03:09 -07:00
|
|
|
}
|
|
|
|
|
2011-04-19 13:35:49 -07:00
|
|
|
fn main() {
|
2010-06-23 21:03:09 -07:00
|
|
|
let port[int] p = port();
|
|
|
|
spawn child();
|
|
|
|
let int x;
|
2011-05-27 11:59:19 -07:00
|
|
|
p |> x;
|
2010-06-23 21:03:09 -07:00
|
|
|
}
|