improve test

This commit is contained in:
Aleksey Kladov 2018-09-03 01:52:59 +03:00
parent 23303cd0f8
commit fdd282ee0c

View File

@ -261,11 +261,11 @@ fn do_check(code: &str, expected: &[&str]) {
fn test_lambda_scope() {
do_check(r"
fn quux(foo: i32) {
let f = |bar| {
let f = |bar, baz: i32| {
<|>
};
}",
&["bar", "foo"],
&["bar", "baz", "foo"],
);
}