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

7 lines
150 B
Rust
Raw Normal View History

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