Add test for fn pointers
This commit is contained in:
parent
371c5aec1c
commit
393b7119bd
@ -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>)
|
||||
"#]],
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user