There was an error while loading. Please reload this page.
1 parent 966504c commit dd51031Copy full SHA for dd51031
src/test/run-pass/closure-inference2.rs
@@ -0,0 +1,7 @@
1
+// Test a rather underspecified example:
2
+
3
+fn main() {
4
+ let f = {|i| i};
5
+ assert f(2) == 2;
6
+ assert f(5) == 5;
7
+}
0 commit comments