091 auto discharge disable leaks through borrow

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

Code

input.k

Supporting Files

digest.kz

Actual compiler output

error[KORU030]: Resource 'd' carries obligation <hashing!> was not discharged. Call one of: app/digest:final.hex, app/digest:final.bytes
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_091_auto_discharge_disable_leaks_through_borrow/input.k:20:0

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

Must contain:

not discharged

Flows

flow ~open click a branch to expand · @labels scroll to their anchor
open

Test Configuration

MUST_ERROR

Compiler Flags:

--auto-discharge=disable