each signature fix (#12666)

# Description
Removes the second `Int` parameter from the closure in the signature of
`each`. This parameter doesn't exist / isn't supported.
This commit is contained in:
Ian Manske
2024-04-25 20:47:30 +00:00
committed by GitHub
parent 2466a39574
commit f234a0ea33
2 changed files with 22 additions and 31 deletions

View File

@ -416,10 +416,7 @@ fn proper_missing_param() -> TestResult {
#[test]
fn block_arity_check1() -> TestResult {
fail_test(
r#"ls | each { |x, y, z| 1}"#,
"expected 2 closure parameters",
)
fail_test(r#"ls | each { |x, y| 1}"#, "expected 1 closure parameter")
}
// deprecating former support for escapes like `/uNNNN`, dropping test.