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

16 lines
227 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;
2012-01-06 20:55:56 -08:00
fn child() { assert (1 == 2); }
2010-06-23 21:03:09 -07:00
fn main() {
let p = port::<int>();
2012-06-30 16:19:07 -07:00
task::spawn(|| child() );
let x = recv(p);
}