We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 371c5ae commit 393b711Copy full SHA for 393b711
crates/ra_ide/src/call_info.rs
@@ -720,4 +720,19 @@ fn main() {
720
"#]],
721
)
722
}
723
+
724
+ #[test]
725
+ fn call_info_for_fn_ptr() {
726
+ check(
727
+ r#"
728
+fn main(f: fn(i32, f64) -> char) {
729
+ f(0, <|>)
730
+}
731
+ "#,
732
+ expect![[r#"
733
+ (i32, f64) -> char
734
+ (i32, <f64>)
735
+ "#]],
736
+ )
737
+ }
738
0 commit comments