108 drain discard names no synthetic binding

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

Code

input.k

Supporting Files

lib/pend.kz

Actual compiler output

error[KORU161]: std/store:new(batch): `! discharge` may not discard its element - the arm exists because the column has no drain path the store can insert on its own, so `_` has nothing to escape from. Name it `! discharge item |> ...`, or drop the binder `! discharge |> ...` and let the column thread into the drain call
  --> tests/regression/600_STDLIB/690_STORE/690_108_drain_discard_names_no_synthetic_binding/input.k:5:1

Must contain:

discharge

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (batch, capacity: 2, source: *app/lib/pend:Pending<open!>)
flow ~start click a branch to expand · @labels scroll to their anchor
start
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "inserted")

Test Configuration

MUST_ERROR LANGUAGES: zig cs