Add test for fn pointers

This commit is contained in:
Aleksey Kladov 2020-07-17 12:03:59 +02:00
parent 371c5aec1c
commit 393b7119bd

View File

@ -720,4 +720,19 @@ fn main() {
"#]],
)
}
#[test]
fn call_info_for_fn_ptr() {
check(
r#"
fn main(f: fn(i32, f64) -> char) {
f(0, <|>)
}
"#,
expect![[r#"
(i32, f64) -> char
(i32, <f64>)
"#]],
)
}
}