diff --git a/crates/libeditor/src/scope/fn_scope.rs b/crates/libeditor/src/scope/fn_scope.rs index 42cd71eb56..abc8d34e77 100644 --- a/crates/libeditor/src/scope/fn_scope.rs +++ b/crates/libeditor/src/scope/fn_scope.rs @@ -261,11 +261,11 @@ mod tests { fn test_lambda_scope() { do_check(r" fn quux(foo: i32) { - let f = |bar| { + let f = |bar, baz: i32| { <|> }; }", - &["bar", "foo"], + &["bar", "baz", "foo"], ); }