new test case
This commit is contained in:
parent
966504c828
commit
dd51031390
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 New Issue
Block a user