rust/src/test/run-fail/linked-failure.rs
Graydon Hoare d08b443fff Revert "Use different syntax for checks that matter to typestate"
This reverts commit aa25f22f19. It broke stage2, not sure why yet.
2011-05-02 17:35:33 -07:00

16 lines
174 B
Rust

// xfail-stage0
// -*- rust -*-
// error-pattern:1 == 2
fn child() {
check (1 == 2);
}
fn main() {
let port[int] p = port();
spawn child();
let int x;
x <- p;
}