Show TyKind::FnDef as a fn pointer in source code

This commit is contained in:
Ryo Yoshida 2023-07-28 19:09:38 +09:00
parent 037844c8a0
commit b517aeeca5
No known key found for this signature in database
GPG key ID: E25698A930586171
3 changed files with 27 additions and 2 deletions

View file

@ -1878,7 +1878,6 @@ where
#[test]
fn add_function_with_fn_arg() {
// FIXME: The argument in `bar` is wrong.
check_assist(
generate_function,
r"
@ -1899,7 +1898,7 @@ fn foo() {
bar(Baz::new);
}
fn bar(new: fn) ${0:-> _} {
fn bar(new: fn() -> Baz) ${0:-> _} {
todo!()
}
",