062 reject identity struct mismatch

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

Code

input.kz

Actual compiler output

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

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

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

Flows

flow ~connect click a branch to expand · @labels scroll to their anchor
connect (host: "localhost")

Test Configuration

MUST_ERROR

Post-validation Script: