042 read file no free

✗ Failing This test is currently failing.

Failed: must-fail-passed

Failure Output

🎯 Compiler coordination: Passes: 14 (flow-based: frontend, analysis, emission)

Code

input.kz

Must fail at runtime with:

CONTAINS allocated

Error Verification

Expected Error Pattern

RED PIN — design gap: std/io:read-file returns a bare []const u8 with no
phantom obligation. The caller never frees the allocator-owned slice.
The phantom checker cannot see the leak because the type carries no state.
This test documents the gap; it will stay red until the IO surface gains
an allocated! phantom or the leak is otherwise made visible to the checker.

Actual Compiler Output

🎯 Compiler coordination: Passes: 14 (flow-based: frontend, analysis, emission)

Test Configuration

MUST_FAIL