add test for function pointer without identifier
This commit is contained in:
@@ -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]
|
#[test]
|
||||||
fn test_hover_trait_show_qualifiers() {
|
fn test_hover_trait_show_qualifiers() {
|
||||||
check_actions(
|
check_actions(
|
||||||
|
|||||||
Reference in New Issue
Block a user