Skip to content

Commit 65f9a78

Browse files
committed
---
yaml --- r: 5752 b: refs/heads/master c: 145feb3 h: refs/heads/master v: v3
1 parent 3aa8ddb commit 65f9a78

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 5b0f79b75a40370625383e4fe81bcec5f68ee18d
2+
refs/heads/master: 145feb32984f668ea1caf737af502f60d3d703ea
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
fn# f(i: int) {
2+
assert i == 10;
3+
}
4+
5+
fn main() {
6+
// Binding a bare function turns it into a shared closure
7+
let g: fn() = bind f(10);
8+
g();
9+
}

0 commit comments

Comments
 (0)