rust/src/test/run-fail/linked-failure.rs
2011-10-20 20:34:04 -07:00

16 lines
248 B
Rust

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