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

15 lines
159 B
Rust
Raw Normal View History

2010-06-23 21:03:09 -07:00
// -*- rust -*-
// error-pattern:1 == 2
2010-06-23 21:03:09 -07:00
fn child() {
assert (1 == 2);
2010-06-23 21:03:09 -07:00
}
2011-04-19 13:35:49 -07:00
fn main() {
2010-06-23 21:03:09 -07:00
let port[int] p = port();
spawn child();
let int x;
p |> x;
2010-06-23 21:03:09 -07:00
}