new test case
This commit is contained in:
parent
966504c828
commit
dd51031390
1 changed files with 7 additions and 0 deletions
7
src/test/run-pass/closure-inference2.rs
Normal file
7
src/test/run-pass/closure-inference2.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
// Test a rather underspecified example:
|
||||
|
||||
fn main() {
|
||||
let f = {|i| i};
|
||||
assert f(2) == 2;
|
||||
assert f(5) == 5;
|
||||
}
|
Loading…
Reference in a new issue