Issue #2606: `let xs = [1, 2, 3]; let ws = [xs.par_iter().map(fn(x) { x * 2 }),…

Open and answer this issue on GitHub.

decision, bugs · opened 2026-11-21 · updated 2026-11-21 · 0 comments

Filed by the driver from the Found: of the run of issue-1424 (#1424) (owner, 2026-11-06).

Found

let xs = [1, 2, 3]; let ws = [xs.par_iter().map(fn(x) { x * 2 }), xs.par_iter().map(fn(x) { x + 1 })]; for v in ws.drain() { println(f"{v.count()}") } passes the checker and rustc refuses it with NK1343 “expected closure, found a different closure”; one element works. It should either be refused by the checker or run (a list of walks of one item type is well typed by Part II). Suspected: the emitter’s list literal of walks (no boxing of the closure types); refuse or box: no decision yet

To build

Done when

The probe or check gives the expected output the first item names from its ADR or Part I-III section, and a tests/compiler/tests/ test (or the named check) that failed on the unfixed tree is green; or the probe already passes on develop and a test pins it, naming the commit that fixed it; or the issue is closed as by design, naming the function or ADR.


Generated by Claude Code

Back to Open Issues