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

18 lines
251 B
Rust
Raw Normal View History

2010-06-23 21:03:09 -07:00
// -*- rust -*-
// error-pattern:1 == 2
// no-valgrind
2010-06-23 21:03:09 -07:00
use std;
import std::task;
import std::comm::mk_port;
2011-07-27 14:19:39 +02:00
fn child() { assert (1 == 2); }
2010-06-23 21:03:09 -07:00
fn main() {
let p = mk_port::<int>();
let f = child;
task::_spawn(f);
let x = p.recv();
}