diff options
| author | Graydon Hoare <[email protected]> | 2011-04-19 13:35:49 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-04-19 13:35:49 -0700 |
| commit | d2bd07dcb02783063375b6c8532fceaf9fa9d50f (patch) | |
| tree | a253b5eadb140d14bc99d1456e316ce1e210a6be /src/test/compile-fail | |
| parent | rustc: Allow glue to be emitted even for scalar types; this is necessary to s... (diff) | |
| download | rust-d2bd07dcb02783063375b6c8532fceaf9fa9d50f.tar.xz rust-d2bd07dcb02783063375b6c8532fceaf9fa9d50f.zip | |
Remove effect system from src.
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/impure-pred.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/compile-fail/impure-pred.rs b/src/test/compile-fail/impure-pred.rs deleted file mode 100644 index 17a651ca..00000000 --- a/src/test/compile-fail/impure-pred.rs +++ /dev/null @@ -1,21 +0,0 @@ -// xfail-stage0 -// -*- rust -*- - -// error-pattern: impure function used in constraint - -fn f(int a, int b) : lt(a,b) { -} - -impure fn lt(int a, int b) -> bool { - let port[int] p = port(); - let chan[int] c = chan(p); - c <| 10; - ret true; -} - -fn main() { - let int a = 10; - let int b = 23; - check lt(a,b); - f(a,b); -} |