Issue #2987: `fn rebuilt(pairs: ref Vec[(u32, String)], mut into: Vec[(u32, String)]) {…

Open and answer this issue on GitHub.

ready, bugs, queued · opened 2026-11-30 · updated 2026-11-30 · 0 comments

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

Found

fn rebuilt(pairs: ref Vec[(u32, String)], mut into: Vec[(u32, String)]) { for pair in pairs { let (a, b) = pair; into.push((a, b)) } } gives NK1343 (rustc mismatched types) on HEAD 60287316, should give NK1102 as let a = pair.0; let b = pair.1; into.push((a, b)) already does (ADR-282 D2); suspected: the tuple pattern of a let over a lent tuple binds b as String, not a view (check_core_stmt.nika let-pattern binding; settle by let z: i64 = b in the loop showing the type)

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