add test for function pointer without identifier
@@ -1346,6 +1346,24 @@ fn test_hover_function_pointer_show_types() {
);
}
+#[test]
+fn test_hover_function_pointer_no_identifier_show_types() {
+ check(
+ r#"type foo$0 = fn(i32, _: i32) -> i32;"#,
+ expect![[r#"
+ *foo*
+
+ ```rust
+ test
+ ```
+
+ ```rust
+ type foo = fn(i32, i32) -> i32
+ ```
+ "#]],
+ );
+}
+
#[test]
fn test_hover_trait_show_qualifiers() {
check_actions(
