Issue #2965: indexing a Shared directly fails at rustc: `fn main() throws { let s:…

Open and answer this issue on GitHub.

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

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

Found

indexing a Shared directly fails at rustc: fn main() throws { let s: Shared[Vec[i64]] = Shared([7, 8]); println(f"{s[1]}") } gives NK1343 “the trait bound Shared[List<i64>]: Get<_> is not satisfied” (untyped Shared([7, 8]) gives Shared[List<{integer}>]: Get<{integer}>); it should print 8, since a Shared hands out its value read-only (the checker accepts s[1]); suspected emit_core_reads.nika index read (~line 671, writes nikaia_std::index::get(&s, 1) with no deref through the Shared), settled by reading the emitted Rust of that probe

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