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

18 lines
208 B
Rust
Raw Normal View History

// xfail-stage0
// xfail-stage1
// xfail-stage2
2010-06-23 23:03:09 -05:00
// -*- rust -*-
// error-pattern::1 == 2
2010-06-23 23:03:09 -05:00
fn child() {
assert (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;
}