140 obligation record field phantomless pack refused at produce

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

Code

input.kz

Actual compiler output

error[KORU030]: Produced record field 'h' is declared <input:owned!> but 'h' holds no live obligation to hand the caller — it was never acquired or has already been discharged.
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_140_obligation_record_field_phantomless_pack_refused_at_produce/input.kz:16:0

Compiler must reject:

Compilation must fail with a diagnostic.

Flows

subflow ~pack click a branch to expand · @labels scroll to their anchor
mint-raw (id)
flow ~pack click a branch to expand · @labels scroll to their anchor
pack (id: 1)

Test Configuration

MUST_ERROR