mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Show TyKind::FnDef
as a fn pointer in source code
This commit is contained in:
parent
037844c8a0
commit
b517aeeca5
3 changed files with 27 additions and 2 deletions
|
@ -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!()
|
||||
}
|
||||
",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue