058 destructured field leaks

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

Code

input.k

Actual compiler output

error[KORU030]: Resource 'data' carries obligation <allocated!> was not discharged. Call: std/io:free
  --> tests/regression/300_ADVANCED_FEATURES/335_OBLIGATION_STRESS/335_058_destructured_field_leaks/input.k:9:1

Must contain:

KORU030

Flows

flow ~gzip click a branch to expand · @labels scroll to their anchor
gzip (data: "hello koru")

Test Configuration

MUST_ERROR LANGUAGES: zig