135 field discharge inside for each

✗ Failing This test is currently failing.

Failed: backend-exec

Failure Output

error[KORU030]: Phantom state mismatch: 'r.h' (parameter 'h') holds no live '<owned!>' obligation to consume here — it was never acquired or has already been discharged. Pass a value that still holds its '<owned!>' obligation.
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_135_field_discharge_inside_for_each/input.kz:27:0

❌ Compiler coordination error: Phantom semantic validation failed
   (set KORU_BACKEND_TRACE=1 for the backend return trace)

Code

input.kz

Expected output

disposed 0
n=0
disposed 1
n=10
disposed 2
n=20

Flows

flow ~for click a branch to expand · @labels scroll to their anchor
for (0..3)

Test Configuration

MUST_RUN