diff --git a/crates/ra_ide/src/call_info.rs b/crates/ra_ide/src/call_info.rs index 53d56a0a4a7..14980afdd04 100644 --- a/crates/ra_ide/src/call_info.rs +++ b/crates/ra_ide/src/call_info.rs @@ -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, ) + "#]], + ) + } }