Issue #3005: an empty list literal with no element type reaches rustc instead of being…

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-2999 (#2999) (owner, 2026-11-06).

Found

an empty list literal with no element type reaches rustc instead of being refused (ADR-135 says where an element type comes from), cause unknown: fn main() throws {\n let p = []\n println(f"{p.len()}")\n} and let p = ([], 1) with println(f"{p.0.len()}") both give NK1343 “Internal compiler error” with rustc’s “type annotations needed for (List<_>, i32)” on target/fast/nikaia built from a6aa0d4ad plus this fix (the same on $NIKAIA_OLD); expected: a checker refusal naming the missing element type, or the type taken from a use

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