We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f63b317 commit 54b5102Copy full SHA for 54b5102
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 1b0f1f0b79fb29d28bcabb7a8468f4a5a95c0712
+refs/heads/master: 90c240208985aff48c8bf09574c0cb1d79868593
trunk/src/test/run-pass/fn-bare-spawn.rs
@@ -0,0 +1,16 @@
+// This is what the signature to spawn should look like with bare functions
+
3
+fn spawn<~T>(val: T, f: fn#(T)) {
4
+ f(val);
5
+}
6
7
+fn# f(&&i: int) {
8
+ assert i == 100;
9
10
11
+fn main() {
12
+ spawn(100, f);
13
+ spawn(100, fn#(&&i: int) {
14
15
+ });
16
0 commit comments