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 6803ced commit 07174e7Copy full SHA for 07174e7
[refs]
@@ -1,6 +1,6 @@
1
---
2
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
-refs/heads/snap-stage3: 966504c828ded5b6a0a9d4ff5264fb778570005e
+refs/heads/snap-stage3: dd510313908dda405235ae769dfa94ed18f715ed
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
branches/snap-stage3/src/test/run-pass/closure-inference2.rs
@@ -0,0 +1,7 @@
+// Test a rather underspecified example:
+
+fn main() {
+ let f = {|i| i};
+ assert f(2) == 2;
+ assert f(5) == 5;
7
+}
0 commit comments