test: Add a test that function argument patterns take in the expected type. r=test-only

This commit is contained in:
Patrick Walton 2012-11-29 11:25:02 -08:00
parent 976e1ced00
commit 9678abedec

View File

@ -0,0 +1,8 @@
fn main() {
let f: fn((int,int)) = |(x, y)| {
assert x == 1;
assert y == 2;
};
f((1, 2));
}