272 return destructure annotation refused

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

Code

input.kz

Actual compiler output

error[KORU175]: destructure annotation '[row]' on 'h' has no consumer here — annotations are requests a transform implements; nothing on this path reads them
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_272_return_destructure_annotation_refused/input.kz:12:0
    |
 12 | ~make2(id: 1): { [row]h } |> std/io:print.ln("h = {{ h:d }}")
    | ^
  hint: drop the annotation, or put the destructure on a consumer that implements it (std/store's query arm owns [row]/[ordinal]/[id])

Frontend must reject with:

CONTAINS error[KORU175]
CONTAINS '[row]'
CONTAINS 'h'
ERROR_AT 12
NOT_CONTAINS output_emitted.zig

Flows

flow ~make2 click a branch to expand · @labels scroll to their anchor
make2 (id: 1)

Test Configuration

MUST_ERROR