提交 9678abed 编写于 作者: P Patrick Walton

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

上级 976e1ced
fn main() {
let f: fn((int,int)) = |(x, y)| {
assert x == 1;
assert y == 2;
};
f((1, 2));
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册