about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-08-04 17:41:04 -0700
committerBrian Anderson <banderson@mozilla.com>2012-08-04 17:41:04 -0700
commita52f6d26db810b947f5ff515ffae18a31e9479c0 (patch)
tree8c68dd3fd69b24bbf8a484fd68544a2b9c956817
parenta60f9c76f5b5ce503b479227a55b10ad65598e80 (diff)
downloadrust-a52f6d26db810b947f5ff515ffae18a31e9479c0.tar.gz
rust-a52f6d26db810b947f5ff515ffae18a31e9479c0.zip
Fix closure pretty-print tests
-rw-r--r--src/test/pretty/disamb-stmt-expr.rs2
-rw-r--r--src/test/pretty/fn-types.rs1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/test/pretty/disamb-stmt-expr.rs b/src/test/pretty/disamb-stmt-expr.rs
index 61323152af1..3ad709d991d 100644
--- a/src/test/pretty/disamb-stmt-expr.rs
+++ b/src/test/pretty/disamb-stmt-expr.rs
@@ -4,7 +4,7 @@
 // preserved.  They are needed to disambiguate `{return n+1}; - 0` from
 // `({return n+1}-0)`.
 
-fn id(f: fn() -> int) -> int { f() }
+fn id(f: fn&() -> int) -> int { f() }
 
 fn wsucc(n: int) -> int { (do id || { 1 }) - 0 }
 fn main() { }
diff --git a/src/test/pretty/fn-types.rs b/src/test/pretty/fn-types.rs
index a51e9bad462..9132c5475ff 100644
--- a/src/test/pretty/fn-types.rs
+++ b/src/test/pretty/fn-types.rs
@@ -1,7 +1,6 @@
 // pp-exact
 
 fn from_foreign_fn(x: extern fn()) { }
-fn from_closure(x: fn()) { }
 fn from_stack_closure(x: fn&()) { }
 fn from_box_closure(x: fn@()) { }
 fn from_unique_closure(x: fn~()) { }