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

15 lines
165 B
Rust
Raw Normal View History

2010-06-23 21:03:09 -07:00
// -*- rust -*-
// error-pattern:1 == 2
fn child() {
check (1 == 2);
}
impure fn main() {
2010-06-23 21:03:09 -07:00
let port[int] p = port();
spawn child();
let int x;
x <- p;
}