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

16 lines
174 B
Rust
Raw Normal View History

// xfail-stage0
2010-06-23 23:03:09 -05:00
// -*- rust -*-
// error-pattern:1 == 2
fn child() {
check (1 == 2);
2010-06-23 23:03:09 -05:00
}
2011-04-19 15:35:49 -05:00
fn main() {
2010-06-23 23:03:09 -05:00
let port[int] p = port();
spawn child();
let int x;
x <- p;
}