032 store reject unused interceptor binding

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

Code

input.kz

Actual compiler output

error[KORU161]: std/store:new(pool): `! inserted` binds 'hp' but never uses it — discard the payload (`! inserted _`), or use the field in the body
  --> tests/regression/600_STDLIB/690_STORE/690_032_store_reject_unused_interceptor_binding/input.kz:15:0

Backend must reject with:

CONTAINS inserted
CONTAINS hp
CONTAINS never uses
CONTAINS inserted _

Error output must contain

std/store:new(pool): `! inserted` binds 'hp' but never uses it — discard the payload (`! inserted _`), or use the field in the body

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (stats, source: count: 0[i64])
flow ~new click a branch to expand · @labels scroll to their anchor
new (pool, capacity: 64, source: hp: i64)
flow ~watch click a branch to expand · @labels scroll to their anchor
watch (stats)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (pool, source: hp: 1)

Test Configuration

MUST_ERROR