From dd510313908dda405235ae769dfa94ed18f715ed Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Sun, 5 Feb 2012 10:08:14 -0800 Subject: [PATCH] new test case --- src/test/run-pass/closure-inference2.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/test/run-pass/closure-inference2.rs diff --git a/src/test/run-pass/closure-inference2.rs b/src/test/run-pass/closure-inference2.rs new file mode 100644 index 00000000000..159bd7c2818 --- /dev/null +++ b/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; +}