Fix closure pretty-print tests
This commit is contained in:
parent
a60f9c76f5
commit
a52f6d26db
2 changed files with 1 additions and 2 deletions
|
@ -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() { }
|
||||
|
|
|
@ -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~()) { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue