Issue #1353: (1) apply(fn(s) { s.trim().to_string() }, g) and apply(fn(s) { s }, g)…

Open and answer this issue on GitHub.

views, decision · opened 2026-11-07 · updated 2026-11-07 · 0 comments

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

Found

(1) apply(fn(s) { s.trim().to_string() }, g) and apply(fn(s) { s }, g) with f: fn(s: String) -> String get a rustc Mismatched types where a refusal with .clone() belongs. check_core_lambda_enter in check_core_leaves.nika sets state.expected = null, so a lambda’s last value is never checked against the function type’s owning result. (2) let outer: String = "captured" then apply(fn(s) { outer }, g) gets rustc “cannot move out of outer” (before this change: Mismatched types). A lambda that may be called again hands back a captured owned value; this needs a refusal with .clone().

Needs

supervisor decision: is Found (1) a refusal (which NK code: NK1104 or NK2302 worded for a lambda), as ADR-282 D8/D10 and views-3 D12/D14 read? If so, #1263/#1264’s expected hi is wrong

To build

Done when

The probe gives the specified result and its test is green.


Generated by Claude Code

Back to Open Issues