mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Compute closure captures
This commit is contained in:
parent
51d5862caf
commit
59b6f2d9f2
42 changed files with 2537 additions and 433 deletions
|
@ -1910,7 +1910,6 @@ fn bar(new: fn) ${0:-> _} {
|
|||
|
||||
#[test]
|
||||
fn add_function_with_closure_arg() {
|
||||
// FIXME: The argument in `bar` is wrong.
|
||||
check_assist(
|
||||
generate_function,
|
||||
r"
|
||||
|
@ -1925,7 +1924,7 @@ fn foo() {
|
|||
bar(closure)
|
||||
}
|
||||
|
||||
fn bar(closure: _) {
|
||||
fn bar(closure: impl Fn(i64) -> i64) {
|
||||
${0:todo!()}
|
||||
}
|
||||
",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue