Skip to content

Commit 9678abe

Browse files
committed
test: Add a test that function argument patterns take in the expected type. r=test-only
1 parent 976e1ce commit 9678abe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
fn main() {
2+
let f: fn((int,int)) = |(x, y)| {
3+
assert x == 1;
4+
assert y == 2;
5+
};
6+
f((1, 2));
7+
}
8+

0 commit comments

Comments
 (0)