rust/src/test/run-fail/linked-failure.rs

16 lines
233 B
Rust
Raw Normal View History

2010-06-23 21:03:09 -07:00
// -*- rust -*-
// error-pattern:1 == 2
use std;
import task;
import comm::port;
import comm::recv;
2011-10-20 20:34:04 -07:00
fn child(&&_i: ()) { assert (1 == 2); }
2010-06-23 21:03:09 -07:00
fn main() {
let p = port::<int>();
task::spawn((), child);
let x = recv(p);
}