From fdd282ee0c7c627120bbcd7b78c0c6b7acb3556f Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 3 Sep 2018 01:52:59 +0300 Subject: improve test --- crates/libeditor/src/scope/fn_scope.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/libeditor/src/scope/fn_scope.rs b/crates/libeditor/src/scope/fn_scope.rs index 42cd71eb5..abc8d34e7 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"], ); } -- cgit v1.2.3