Issue #2982: use std::collections / `fn main() throws { let ps: Vec[(String, 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-2601 (#2601) (owner, 2026-11-06).

Found

use std::collections / fn main() throws { let ps: Vec[(String, String)] = [("a", "1"), ("b", "2")]; let m: collections::HashMap[String, String] = ps.iter().cloned().collect(); println(f"{m.len()}") } gives NK1343 “Rustc output: a value of type HashMap<Text, Text> cannot be built from an iterator over elements of type (&str, &str)” on HEAD’s build with this fix, and on $NIKAIA_OLD; it should print 2 (Part I 4.5, collect into a map; ADR-384 D2 Seq::cloned); suspected: the text-tier pass (text_tiers.nika) makes the list’s pairs (&str, &str) and leaves the map’s String owned when the chain carries .cloned(); settled by lowering the probe and reading the two types

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