We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a60f9c7 commit a52f6d2Copy full SHA for a52f6d2
src/test/pretty/disamb-stmt-expr.rs
@@ -4,7 +4,7 @@
4
// preserved. They are needed to disambiguate `{return n+1}; - 0` from
5
// `({return n+1}-0)`.
6
7
-fn id(f: fn() -> int) -> int { f() }
+fn id(f: fn&() -> int) -> int { f() }
8
9
fn wsucc(n: int) -> int { (do id || { 1 }) - 0 }
10
fn main() { }
src/test/pretty/fn-types.rs
@@ -1,7 +1,6 @@
1
// pp-exact
2
3
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~()) { }
0 commit comments