rust/src/test/run-fail/linked-failure.rs
2011-09-14 14:20:41 -07:00

17 lines
251 B
Rust

// -*- rust -*-
// error-pattern:1 == 2
use std;
import std::task;
import std::comm::port;
import std::comm::recv;
fn child() { assert (1 == 2); }
fn main() {
let p = port::<int>();
let f = child;
task::spawn(f);
let x = recv(p);
}