Issue #2983: use std::collections / `fn main() throws { let ps: Vec[String] = [“a”,…

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] = ["a", "b"]; let m: collections::HashSet[String] = ps.iter().collect(); println(f"{m.len()}") } gives NK1343 “Rustc output: ps does not live long enough” on HEAD’s build with this fix and on $NIKAIA_OLD (also let t: Vec[String] = ss.iter().collect() with let ss: Vec[String] = ["a"]); it should print 2, or a Nikaia refusal; suspected: the text-tier pass (text_tiers.nika) makes the target a collection of views with a lifetime the emitted code does not give; cause unknown beyond that

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