improve test
This commit is contained in:
parent
23303cd0f8
commit
fdd282ee0c
@ -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"],
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user