384 each member iterable refuses

✓ Passing Passing: the compiler rejects this program as expected.

Code

input.k

Actual compiler output

error[KORU161]: std/store:query(spec): the sweep body reads 'i', bound by `! each` over `bag.items` — the iterable's element type is not derivable at the sweep boundary. A range `a..b`, an `&[_]T{…}` literal, or a `[]T`/`[N]T` iterable names one; anything else needs the value lifted through a typed binding first.
  --> tests/regression/600_STDLIB/690_STORE/690_384_each_member_iterable_refuses/input.k:15:13

Must fail at runtime with:

ERROR_AT 15

Error output must contain

element type is not derivable

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (spec, capacity: 8, source: d: i64)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (spec, source: d: 10)
subflow ~run click a branch to expand · @labels scroll to their anchor
query (spec)

Test Configuration

MUST_ERROR LANGUAGES: zig